Changeset 6099

Show
Ignore:
Timestamp:
09/12/07 22:19:26 (1 year ago)
Author:
markjaquith
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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