WordPress.org

Make WordPress Core

Changeset 21815


Ignore:
Timestamp:
09/11/2012 06:54:56 PM (6 years ago)
Author:
ryan
Message:

Avoid 'Creating default object from empty value' warning in PHP 5.4. Props SergeyBiryukov, knutsp. fixes #21716

File:
1 edited

Legend:

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

    r21110 r21815  
    8787
    8888    $cur = get_preferred_from_update_core();
     89    if ( ! is_object( $cur ) )
     90        $cur = new stdClass;
     91
    8992    if ( ! isset( $cur->current ) )
    9093        $cur->current = '';
Note: See TracChangeset for help on using the changeset viewer.