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 );