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:
parent
0880ca8693
commit
791aec14b2
|
@ -114,8 +114,9 @@ function get_themes() {
|
||||||
|
|
||||||
$themes = array();
|
$themes = array();
|
||||||
$wp_broken_themes = array();
|
$wp_broken_themes = array();
|
||||||
$theme_root = get_theme_root();
|
$theme_loc = $theme_root = get_theme_root();
|
||||||
$theme_loc = str_replace(ABSPATH, '', $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
|
// Files in wp-content/themes directory and one subdir down
|
||||||
$themes_dir = @ opendir($theme_root);
|
$themes_dir = @ opendir($theme_root);
|
||||||
|
|
Loading…
Reference in New Issue