Ticket #16135: update.php.patch
| File update.php.patch, 1011 bytes (added by wahgnube, 2 years ago) |
|---|
-
wp-admin/update.php
161 161 require_once(ABSPATH . 'wp-admin/admin-header.php'); 162 162 163 163 $nonce = 'upgrade-theme_' . $theme; 164 $url = 'update.php?action=upgrade-theme& theme=' . $theme;164 $url = 'update.php?action=upgrade-theme&theme=' . $theme; 165 165 166 166 $upgrader = new Theme_Upgrader( new Theme_Upgrader_Skin( compact('title', 'nonce', 'url', 'theme') ) ); 167 167 $upgrader->upgrade($theme); … … 214 214 215 215 $title = sprintf( __('Installing Theme: %s'), $api->name . ' ' . $api->version ); 216 216 $nonce = 'install-theme_' . $theme; 217 $url = 'update.php?action=install-theme& theme=' . $theme;217 $url = 'update.php?action=install-theme&theme=' . $theme; 218 218 $type = 'web'; //Install theme type, From Web or an Upload. 219 219 220 220 $upgrader = new Theme_Upgrader( new Theme_Installer_Skin( compact('title', 'url', 'nonce', 'plugin', 'api') ) );
