Avoid 'Creating default object from empty value' warning in PHP 5.4. Props SergeyBiryukov, knutsp. fixes #21716
git-svn-id: https://develop.svn.wordpress.org/trunk@21815 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
1cc9c42bc4
commit
e40aee3913
|
@ -86,6 +86,9 @@ function core_update_footer( $msg = '' ) {
|
||||||
return sprintf( __( 'Version %s' ), $GLOBALS['wp_version'] );
|
return sprintf( __( 'Version %s' ), $GLOBALS['wp_version'] );
|
||||||
|
|
||||||
$cur = get_preferred_from_update_core();
|
$cur = get_preferred_from_update_core();
|
||||||
|
if ( ! is_object( $cur ) )
|
||||||
|
$cur = new stdClass;
|
||||||
|
|
||||||
if ( ! isset( $cur->current ) )
|
if ( ! isset( $cur->current ) )
|
||||||
$cur->current = '';
|
$cur->current = '';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue