WordPress.org

Make WordPress Core

Ticket #20623: 20623.patch

File 20623.patch, 975 bytes (added by SergeyBiryukov, 2 years ago)
  • wp-admin/includes/theme.php

     
    124124 
    125125        if ( isset($themes_update->response[ $stylesheet ]) ) { 
    126126                $update = $themes_update->response[ $stylesheet ]; 
    127                 $theme_name = $theme->get('Name'); 
     127                $theme_name = $theme->display('Name'); 
    128128                $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. 
    129129                $update_url = wp_nonce_url('update.php?action=upgrade-theme&theme=' . urlencode($stylesheet), 'upgrade-theme_' . $stylesheet); 
    130130                $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;"';