From 72958d1c534027078ce708cf08afd9d53c61a9fd Mon Sep 17 00:00:00 2001 From: nacin Date: Fri, 3 Dec 2010 22:53:01 +0000 Subject: [PATCH] Make sure get_themes() returns the proper template and stylesheet directory paths. Use the correct variables. fixes #15671. git-svn-id: http://svn.automattic.com/wordpress/trunk@16711 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/theme.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/theme.php b/wp-includes/theme.php index baaa1ef995..0a9482896c 100644 --- a/wp-includes/theme.php +++ b/wp-includes/theme.php @@ -385,8 +385,8 @@ function get_themes() { $template_files = array_unique($template_files); $stylesheet_files = array_unique($stylesheet_files); - $template_dir = dirname($template_files[0]); - $stylesheet_dir = dirname($stylesheet_files[0]); + $template_dir = $template_directory; + $stylesheet_dir = $theme_root . '/' . $stylesheet; if ( empty($template_dir) ) $template_dir = '/';