From a9ecf3f4bef6d46882151f661eca57230452b870 Mon Sep 17 00:00:00 2001 From: Dion Hulse 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: https://develop.svn.wordpress.org/trunk@12743 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 ca28550909..1b245c4ef2 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 );