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:
parent
41f61e4056
commit
23eba5ca0a
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue