Upgrade/Install: Remove a duplicate description for the `upgrader_overwrote_package` action.

See #51800, #9757

Built from https://develop.svn.wordpress.org/trunk@49788


git-svn-id: http://core.svn.wordpress.org/trunk@49511 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
John Blackbourn 2020-12-10 23:38:04 +00:00
parent 1ead0719b7
commit 7e9060a0e4
3 changed files with 5 additions and 14 deletions

View File

@ -162,9 +162,9 @@ class Plugin_Upgrader extends WP_Upgrader {
*
* @since 5.5.0
*
* @param string $package The package file.
* @param array $new_plugin_data The new plugin data.
* @param string $package_type The package type (plugin or theme).
* @param string $package The package file.
* @param array $data The new plugin or theme data.
* @param string $package_type The package type ('plugin' or 'theme').
*/
do_action( 'upgrader_overwrote_package', $package, $this->new_plugin_data, 'plugin' );
}

View File

@ -270,16 +270,7 @@ class Theme_Upgrader extends WP_Upgrader {
wp_clean_themes_cache( $parsed_args['clear_update_cache'] );
if ( $parsed_args['overwrite_package'] ) {
/**
* Fires when the upgrader has successfully overwritten a currently installed
* plugin or theme with an uploaded zip package.
*
* @since 5.5.0
*
* @param string $package The package file.
* @param array $new_theme_data The new theme data.
* @param string $package_type The package type (plugin or theme).
*/
/** This action is documented in wp-admin/includes/class-plugin-upgrader.php */
do_action( 'upgrader_overwrote_package', $package, $this->new_theme_data, 'theme' );
}

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.7-alpha-49787';
$wp_version = '5.7-alpha-49788';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.