Make WordPress Core


Ignore:
Timestamp:
06/03/2008 05:17:45 PM (18 years ago)
Author:
ryan
Message:

Use WP_CONTENT_DIR and URL when linking to theme screenshots. Props sambauers. see #6938

File:
1 edited

Legend:

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

    r7999 r8040  
    129129        $wp_broken_themes = array();
    130130        $theme_loc = $theme_root = get_theme_root();
    131         if ( '/' != ABSPATH ) // don't want to replace all forward slashes, see Trac #4541
    132                 $theme_loc = str_replace(ABSPATH, '', $theme_root);
     131        if ( '/' != WP_CONTENT_DIR ) // don't want to replace all forward slashes, see Trac #4541
     132                $theme_loc = str_replace(WP_CONTENT_DIR, '', $theme_root);
    133133
    134134        // Files in wp-content/themes directory and one subdir down
Note: See TracChangeset for help on using the changeset viewer.