mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-15 20:12:05 +01:00
Avoid 'Creating default object from empty value' warning in PHP 5.4. Props SergeyBiryukov, knutsp. fixes #21716
git-svn-id: http://core.svn.wordpress.org/trunk@21815 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7fb2c8b4f7
commit
54d7300755
@ -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
Block a user