mirror of
git://develop.git.wordpress.org/
synced 2025-01-18 05:18:42 +01:00
Switch to WP_Theme::display() in theme update message. Props SergeyBiryukov. fixes #20623
git-svn-id: https://develop.svn.wordpress.org/trunk@20733 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e531502231
commit
4c3eea178d
@ -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;"';
|
||||
|
Loading…
x
Reference in New Issue
Block a user