WordPress.org

Make WordPress Core

Changeset 20438


Ignore:
Timestamp:
04/11/12 20:15:31 (2 years ago)
Author:
nacin
Message:

Check if the response property is set before continuing with the update_themes transient return value. props johnbillion, fixes #20378.

File:
1 edited

Legend:

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

    r20236 r20438  
    220220    $themes = wp_get_themes(); 
    221221    $current = get_site_transient('update_themes'); 
    222     $update_themes = array(); 
    223  
     222 
     223    if ( ! isset( $current->response ) ) 
     224        return array(); 
     225 
     226    $update_themes = array();    
    224227    foreach ( $current->response as $stylesheet => $data ) { 
    225228        $update_themes[ $stylesheet ] = wp_get_theme( $stylesheet ); 
Note: See TracChangeset for help on using the changeset viewer.