Changeset 47122 for trunk/src/wp-admin/update.php
- Timestamp:
- 01/29/2020 12:43:23 AM (6 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/update.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/update.php
r45932 r47122 92 92 93 93 error_reporting( E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR ); 94 ini_set( 'display_errors', true ); // Ensure that Fatal errors are displayed.94 ini_set( 'display_errors', true ); // Ensure that fatal errors are displayed. 95 95 wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $plugin ); 96 96 include( WP_PLUGIN_DIR . '/' . $plugin ); … … 103 103 } 104 104 105 include_once( ABSPATH . 'wp-admin/includes/plugin-install.php' ); // for plugins_api..105 include_once( ABSPATH . 'wp-admin/includes/plugin-install.php' ); // For plugins_api(). 106 106 107 107 check_admin_referer( 'install-plugin_' . $plugin ); … … 133 133 } 134 134 135 $type = 'web'; // Install plugin type, From Web or an Upload.135 $type = 'web'; // Install plugin type, From Web or an Upload. 136 136 137 137 $upgrader = new Plugin_Upgrader( new Plugin_Installer_Skin( compact( 'title', 'url', 'nonce', 'plugin', 'api' ) ) ); … … 159 159 $nonce = 'plugin-upload'; 160 160 $url = add_query_arg( array( 'package' => $file_upload->id ), 'update.php?action=upload-plugin' ); 161 $type = 'upload'; // Install plugin type, From Web or an Upload.161 $type = 'upload'; // Install plugin type, From Web or an Upload. 162 162 163 163 $upgrader = new Plugin_Upgrader( new Plugin_Installer_Skin( compact( 'type', 'title', 'nonce', 'url' ) ) ); … … 225 225 } 226 226 227 include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); // for themes_api..227 include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); // For themes_api(). 228 228 229 229 check_admin_referer( 'install-theme_' . $theme ); … … 237 237 ), 238 238 ) 239 ); // Save on a bit of bandwidth.239 ); // Save on a bit of bandwidth. 240 240 241 241 if ( is_wp_error( $api ) ) { … … 252 252 $nonce = 'install-theme_' . $theme; 253 253 $url = 'update.php?action=install-theme&theme=' . urlencode( $theme ); 254 $type = 'web'; // Install theme type, From Web or an Upload.254 $type = 'web'; // Install theme type, From Web or an Upload. 255 255 256 256 $upgrader = new Theme_Upgrader( new Theme_Installer_Skin( compact( 'title', 'url', 'nonce', 'plugin', 'api' ) ) ); … … 279 279 $nonce = 'theme-upload'; 280 280 $url = add_query_arg( array( 'package' => $file_upload->id ), 'update.php?action=upload-theme' ); 281 $type = 'upload'; // Install plugintype, From Web or an Upload.281 $type = 'upload'; // Install theme type, From Web or an Upload. 282 282 283 283 $upgrader = new Theme_Upgrader( new Theme_Installer_Skin( compact( 'type', 'title', 'nonce', 'url' ) ) );
Note: See TracChangeset
for help on using the changeset viewer.