Ticket #4541: fix-theme-path-logic.diff
| File fix-theme-path-logic.diff, 632 bytes (added by , 18 years ago) |
|---|
-
wp-includes/theme.php
diff -Naur wordpress/wp-includes/theme.php wordpress-new/wp-includes/theme.php
old new 98 98 $themes = array(); 99 99 $wp_broken_themes = array(); 100 100 $theme_root = get_theme_root(); 101 if (ABSPATH != '/') { 101 102 $theme_loc = str_replace(ABSPATH, '', $theme_root); 103 } 104 else { 105 $theme_loc = $theme_root; 106 } 102 107 103 108 // Files in wp-content/themes directory and one subdir down 104 109 $themes_dir = @ dir($theme_root);