Revision 12345. Nothing but whitespace fixes. That's how I roll.
git-svn-id: https://develop.svn.wordpress.org/trunk@12345 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ce73d32830
commit
aeb4be8d81
@ -368,7 +368,7 @@ function get_themes() {
|
|||||||
//Make unique and remove duplicates when stylesheet and template are the same i.e. most themes
|
//Make unique and remove duplicates when stylesheet and template are the same i.e. most themes
|
||||||
$template_files = array_unique($template_files);
|
$template_files = array_unique($template_files);
|
||||||
$stylesheet_files = array_unique($stylesheet_files);
|
$stylesheet_files = array_unique($stylesheet_files);
|
||||||
|
|
||||||
$template_dir = dirname($template_files[0]);
|
$template_dir = dirname($template_files[0]);
|
||||||
$stylesheet_dir = dirname($stylesheet_files[0]);
|
$stylesheet_dir = dirname($stylesheet_files[0]);
|
||||||
|
|
||||||
@ -502,14 +502,14 @@ function get_current_theme() {
|
|||||||
*/
|
*/
|
||||||
function register_theme_directory( $directory) {
|
function register_theme_directory( $directory) {
|
||||||
global $wp_theme_directories;
|
global $wp_theme_directories;
|
||||||
|
|
||||||
/* If this folder does not exist, return and do not register */
|
/* If this folder does not exist, return and do not register */
|
||||||
if ( !file_exists( $directory ) )
|
if ( !file_exists( $directory ) )
|
||||||
/* Try prepending as the theme directory could be relative to the content directory */
|
/* Try prepending as the theme directory could be relative to the content directory */
|
||||||
$registered_directory = WP_CONTENT_DIR . '/' . $directory;
|
$registered_directory = WP_CONTENT_DIR . '/' . $directory;
|
||||||
else
|
else
|
||||||
$registered_directory = $directory;
|
$registered_directory = $directory;
|
||||||
|
|
||||||
/* If this folder does not exist, return and do not register */
|
/* If this folder does not exist, return and do not register */
|
||||||
if ( !file_exists( $registered_directory ) )
|
if ( !file_exists( $registered_directory ) )
|
||||||
return false;
|
return false;
|
||||||
@ -624,7 +624,7 @@ function get_theme_root( $stylesheet_or_template = false ) {
|
|||||||
} else {
|
} else {
|
||||||
$theme_root = WP_CONTENT_DIR . '/themes';
|
$theme_root = WP_CONTENT_DIR . '/themes';
|
||||||
}
|
}
|
||||||
|
|
||||||
return apply_filters( 'theme_root', $theme_root );
|
return apply_filters( 'theme_root', $theme_root );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user