Comments clean up, consistent formatting

This commit is contained in:
Ben Word
2013-02-15 12:13:18 -06:00
parent 601d66f9a1
commit 260fc4c353
14 changed files with 31 additions and 65 deletions

View File

@@ -1,7 +1,6 @@
<?php
/**
* Theme Wrapper
* Theme wrapper
*
* @link http://scribu.net/wordpress/theme-wrappers.html
*/
@@ -48,10 +47,8 @@ class Roots_Wrapping {
return locate_template($templates);
}
}
add_filter('template_include', array('Roots_Wrapping', 'wrap'), 99);
/**
* Page titles
*/
@@ -98,10 +95,11 @@ function roots_htaccess_writable() {
}
}
}
add_action('admin_init', 'roots_htaccess_writable');
// returns WordPress subdirectory if applicable
/**
* Return WordPress subdirectory if applicable
*/
function wp_base_dir() {
preg_match('!(https?://[^/|"]+)([^"]+)?!', site_url(), $matches);
if (count($matches) === 3) {
@@ -111,7 +109,9 @@ function wp_base_dir() {
}
}
// opposite of built in WP functions for trailing slashes
/**
* Opposite of built in WP functions for trailing slashes
*/
function leadingslashit($string) {
return '/' . unleadingslashit($string);
}