From ba7c715d8ecb7ba95dc8351148c6fccf371f6ce8 Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 26 Nov 2008 12:04:29 +0000 Subject: [PATCH] Fix notices. see #8347 git-svn-id: http://svn.automattic.com/wordpress/trunk@9902 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/update.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/wp-includes/update.php b/wp-includes/update.php index b2ca6023d..c3ced81df 100644 --- a/wp-includes/update.php +++ b/wp-includes/update.php @@ -27,6 +27,9 @@ function wp_version_check() { $php_version = phpversion(); $current = get_option( 'update_core' ); + if ( ! is_object($current) ) + $current = new stdClass; + $locale = get_locale(); if ( isset( $current->last_checked ) && @@ -112,6 +115,8 @@ function wp_update_plugins() { $plugins = get_plugins(); $active = get_option( 'active_plugins' ); $current = get_option( 'update_plugins' ); + if ( ! is_object($current) ) + $current = new stdClass; $new_option = ''; $new_option->last_checked = time(); @@ -201,6 +206,8 @@ function wp_update_themes( ) { $installed_themes = get_themes( ); $current_theme = get_option( 'update_themes' ); + if ( ! is_object($current_theme) ) + $current_theme = new stdClass; $new_option = ''; $new_option->last_checked = time( );