WordPress.org

Make WordPress Core

Ticket #16135: update.php.patch

File update.php.patch, 1011 bytes (added by wahgnube, 3 years ago)
  • wp-admin/update.php

     
    161161                require_once(ABSPATH . 'wp-admin/admin-header.php'); 
    162162 
    163163                $nonce = 'upgrade-theme_' . $theme; 
    164                 $url = 'update.php?action=upgrade-theme&theme=' . $theme; 
     164                $url = 'update.php?action=upgrade-theme&theme=' . $theme; 
    165165 
    166166                $upgrader = new Theme_Upgrader( new Theme_Upgrader_Skin( compact('title', 'nonce', 'url', 'theme') ) ); 
    167167                $upgrader->upgrade($theme); 
     
    214214 
    215215                $title = sprintf( __('Installing Theme: %s'), $api->name . ' ' . $api->version ); 
    216216                $nonce = 'install-theme_' . $theme; 
    217                 $url = 'update.php?action=install-theme&theme=' . $theme; 
     217                $url = 'update.php?action=install-theme&theme=' . $theme; 
    218218                $type = 'web'; //Install theme type, From Web or an Upload. 
    219219 
    220220                $upgrader = new Theme_Upgrader( new Theme_Installer_Skin( compact('title', 'url', 'nonce', 'plugin', 'api') ) );