Set $theme_loc correctly when ABSPATH is "/". Props arabek. fixes #4541

git-svn-id: http://svn.automattic.com/wordpress/trunk@6099 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2007-09-12 22:19:26 +00:00
parent 0880ca8693
commit 791aec14b2
1 changed files with 3 additions and 2 deletions

View File

@ -114,8 +114,9 @@ function get_themes() {
$themes = array();
$wp_broken_themes = array();
$theme_root = get_theme_root();
$theme_loc = str_replace(ABSPATH, '', $theme_root);
$theme_loc = $theme_root = get_theme_root();
if ( '/' != ABSPATH ) // don't want to replace all forward slashes, see Trac #4541
$theme_loc = str_replace(ABSPATH, '', $theme_root);
// Files in wp-content/themes directory and one subdir down
$themes_dir = @ opendir($theme_root);