mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-05 09:40:13 +00:00
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:
@@ -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' );
|
||||
}
|
||||
|
||||
@@ -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' );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user