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

git-svn-id: https://develop.svn.wordpress.org/trunk@6099 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith 2007-09-12 22:19:26 +00:00
parent 41f61e4056
commit 23eba5ca0a
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);