WordPress.org

Make WordPress Core

Changeset 20331


Ignore:
Timestamp:
03/30/12 16:35:51 (2 years ago)
Author:
nacin
Message:

Ensure we get a theme back from wp_get_theme() before checking ->errors(). see #20103.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/schema.php

    r20170 r20331  
    345345    // If default theme is a child theme, we need to get its template 
    346346    $theme = wp_get_theme( $template ); 
    347     if ( ! $theme->errors() ) 
     347    if ( $theme && ! $theme->errors() ) 
    348348        $template = $theme->get_template(); 
    349349 
Note: See TracChangeset for help on using the changeset viewer.