Make WordPress Core

Ticket #12283: 12283.patch

File 12283.patch, 635 bytes (added by hakre, 16 years ago)
  • wordpress/wp-includes/theme.php

    ### Eclipse Workspace Patch 1.0
    #P wordpress-tests
     
    624624        if ($stylesheet_or_template) {
    625625                $theme_roots = get_theme_roots();
    626626
    627                 if ( $theme_roots[$stylesheet_or_template] )
     627                if ( isset( $theme_roots[$stylesheet_or_template] ) && $theme_roots[$stylesheet_or_template] )
    628628                        $theme_root = WP_CONTENT_DIR . $theme_roots[$stylesheet_or_template];
    629629                else
    630630                        $theme_root = WP_CONTENT_DIR . '/themes';