diff --git a/wp-admin/includes/theme.php b/wp-admin/includes/theme.php index d66c2ab58..0bc0c02f3 100644 --- a/wp-admin/includes/theme.php +++ b/wp-admin/includes/theme.php @@ -124,7 +124,7 @@ function theme_update_available( $theme ) { if ( isset($themes_update->response[ $stylesheet ]) ) { $update = $themes_update->response[ $stylesheet ]; - $theme_name = $theme->get('Name'); + $theme_name = $theme->display('Name'); $details_url = add_query_arg(array('TB_iframe' => 'true', 'width' => 1024, 'height' => 800), $update['url']); //Theme browser inside WP? replace this, Also, theme preview JS will override this on the available list. $update_url = wp_nonce_url('update.php?action=upgrade-theme&theme=' . urlencode($stylesheet), 'upgrade-theme_' . $stylesheet); $update_onclick = 'onclick="if ( confirm(\'' . esc_js( __("Updating this theme will lose any customizations you have made. 'Cancel' to stop, 'OK' to update.") ) . '\') ) {return true;}return false;"';