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

See #51800, #9757


git-svn-id: https://develop.svn.wordpress.org/trunk@49788 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn
2020-12-10 23:36:11 +00:00
parent f92fdb1f78
commit 6267e412f1
2 changed files with 4 additions and 13 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' );
}