Make WordPress Core

Changeset 6099


Ignore:
Timestamp:
09/12/2007 10:19:26 PM (17 years ago)
Author:
markjaquith
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/theme.php

    r6026 r6099  
    115115    $themes = array();
    116116    $wp_broken_themes = array();
    117     $theme_root = get_theme_root();
    118     $theme_loc = str_replace(ABSPATH, '', $theme_root);
     117    $theme_loc = $theme_root = get_theme_root();
     118    if ( '/' != ABSPATH ) // don't want to replace all forward slashes, see Trac #4541
     119        $theme_loc = str_replace(ABSPATH, '', $theme_root);
    119120
    120121    // Files in wp-content/themes directory and one subdir down
Note: See TracChangeset for help on using the changeset viewer.