Make WordPress Core

Changeset 21063


Ignore:
Timestamp:
06/12/2012 03:57:11 PM (13 years ago)
Author:
ryan
Message:

Fallback to /themes when there is no theme root. Props duck_. see #20919

File:
1 edited

Legend:

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

    r21054 r21063  
    9999        $theme_root = get_raw_theme_root( $stylesheet );
    100100        if ( false === $theme_root )
    101             $theme_root = WP_CONTENT_DIR . $theme_root;
     101            $theme_root = WP_CONTENT_DIR . '/themes';
    102102        elseif ( ! in_array( $theme_root, (array) $wp_theme_directories ) )
    103103            $theme_root = WP_CONTENT_DIR . $theme_root;
Note: See TracChangeset for help on using the changeset viewer.