From 97c8150bbdf458f3af377a77ef907471e465d5d9 Mon Sep 17 00:00:00 2001 From: dd32 Date: Sun, 17 Jan 2010 07:04:31 +0000 Subject: [PATCH] Correct the Theme update package check. Props Denis-de-Bernardy. Fixes #11908 for trunk git-svn-id: http://svn.automattic.com/wordpress/trunk@12743 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/themes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/themes.php b/wp-admin/themes.php index ca2855090..1b245c4ef 100644 --- a/wp-admin/themes.php +++ b/wp-admin/themes.php @@ -148,7 +148,7 @@ function theme_update_available( $theme ) { if ( ! current_user_can('update_themes') ) printf( '

' . __('There is a new version of %1$s available. View version %3$s Details.') . '

', $theme_name, $details_url, $update['new_version']); - else if ( empty($update->package) ) + else if ( empty($update['package']) ) printf( '

' . __('There is a new version of %1$s available. View version %3$s Details automatic upgrade unavailable for this theme.') . '

', $theme_name, $details_url, $update['new_version']); else printf( '

' . __('There is a new version of %1$s available. View version %3$s Details or upgrade automatically.') . '

', $theme_name, $details_url, $update['new_version'], $update_url, $update_onclick );