Make WordPress Core

Ticket #4541: fix-theme-path-logic.diff

File fix-theme-path-logic.diff, 632 bytes (added by arabek, 18 years ago)
  • wp-includes/theme.php

    diff -Naur wordpress/wp-includes/theme.php wordpress-new/wp-includes/theme.php
    old new  
    9898       $themes = array();
    9999       $wp_broken_themes = array();
    100100       $theme_root = get_theme_root();
     101       if (ABSPATH != '/') {
    101102       $theme_loc = str_replace(ABSPATH, '', $theme_root);
     103       }
     104       else {
     105               $theme_loc = $theme_root;
     106       }
    102107
    103108       // Files in wp-content/themes directory and one subdir down
    104109       $themes_dir = @ dir($theme_root);