Make WordPress Core

Changeset 9902


Ignore:
Timestamp:
11/26/2008 12:04:29 PM (16 years ago)
Author:
ryan
Message:

Fix notices. see #8347

File:
1 edited

Legend:

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

    r9901 r9902  
    2828
    2929    $current = get_option( 'update_core' );
     30    if ( ! is_object($current) )
     31        $current = new stdClass;
     32
    3033    $locale = get_locale();
    3134    if (
     
    113116    $active  = get_option( 'active_plugins' );
    114117    $current = get_option( 'update_plugins' );
     118    if ( ! is_object($current) )
     119        $current = new stdClass;
    115120
    116121    $new_option = '';
     
    202207    $installed_themes = get_themes( );
    203208    $current_theme = get_option( 'update_themes' );
     209    if ( ! is_object($current_theme) )
     210        $current_theme = new stdClass;
    204211
    205212    $new_option = '';
Note: See TracChangeset for help on using the changeset viewer.