Docs: Miscellaneous DocBlock corrections for plugin and theme updates.
See #49572. git-svn-id: https://develop.svn.wordpress.org/trunk@48446 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9d30b02ed1
commit
8c2443d171
@ -4466,7 +4466,7 @@ function wp_ajax_update_plugin() {
|
||||
/*
|
||||
* Plugin is already at the latest version.
|
||||
*
|
||||
* This may also be the return value If the `update_plugins` site transient is empty,
|
||||
* This may also be the return value if the `update_plugins` site transient is empty,
|
||||
* e.g. when you update two plugins in quick succession before the transient repopulates.
|
||||
*
|
||||
* Preferably something can be done to ensure `update_plugins` isn't empty.
|
||||
|
@ -232,13 +232,13 @@ class Plugin_Installer_Skin extends WP_Upgrader_Skin {
|
||||
$table .= '</tbody></table>';
|
||||
|
||||
/**
|
||||
* Filters the compare table output for overwrite a plugin package on upload.
|
||||
* Filters the compare table output for overwriting a plugin package on upload.
|
||||
*
|
||||
* @since 5.5.0
|
||||
*
|
||||
* @param string $table The output table with Name, Version, Author, RequiresWP and RequiresPHP info.
|
||||
* @param array $current_plugin_data Array with current plugin data.
|
||||
* @param array $new_plugin_data Array with uploaded plugin data.
|
||||
* @param string $table The output table with Name, Version, Author, RequiresWP, and RequiresPHP info.
|
||||
* @param array $current_plugin_data Array with current plugin data.
|
||||
* @param array $new_plugin_data Array with uploaded plugin data.
|
||||
*/
|
||||
echo apply_filters( 'install_plugin_ovewrite_comparison', $table, $current_plugin_data, $this->upgrader->new_plugin_data );
|
||||
|
||||
|
@ -247,8 +247,8 @@ class Plugin_Upgrader extends WP_Upgrader {
|
||||
// Force refresh of plugin update information.
|
||||
wp_clean_plugins_cache( $parsed_args['clear_update_cache'] );
|
||||
|
||||
// Ensure any future auto-update failures trigger a failure email by removing the last
|
||||
// failure notification from the list when plugins update successfully.
|
||||
// Ensure any future auto-update failures trigger a failure email by removing
|
||||
// the last failure notification from the list when plugins update successfully.
|
||||
$past_failure_emails = get_option( 'auto_plugin_theme_update_emails', array() );
|
||||
|
||||
if ( isset( $past_failure_emails[ $plugin ] ) ) {
|
||||
@ -379,8 +379,8 @@ class Plugin_Upgrader extends WP_Upgrader {
|
||||
// Cleanup our hooks, in case something else does a upgrade on this connection.
|
||||
remove_filter( 'upgrader_clear_destination', array( $this, 'delete_old_plugin' ) );
|
||||
|
||||
// Ensure any future auto-update failures trigger a failure email by removing the last
|
||||
// failure notification from the list when plugins update successfully.
|
||||
// Ensure any future auto-update failures trigger a failure email by removing
|
||||
// the last failure notification from the list when plugins update successfully.
|
||||
$past_failure_emails = get_option( 'auto_plugin_theme_update_emails', array() );
|
||||
|
||||
foreach ( $results as $plugin => $result ) {
|
||||
|
@ -267,13 +267,13 @@ class Theme_Installer_Skin extends WP_Upgrader_Skin {
|
||||
$table .= '</tbody></table>';
|
||||
|
||||
/**
|
||||
* Filters the compare table output for overwrite a theme package on upload.
|
||||
* Filters the compare table output for overwriting a theme package on upload.
|
||||
*
|
||||
* @since 5.5.0
|
||||
*
|
||||
* @param string $table The output table with Name, Version, Author, RequiresWP and RequiresPHP info.
|
||||
* @param array $current_theme_data Array with current theme data.
|
||||
* @param array $new_theme_data Array with uploaded theme data.
|
||||
* @param string $table The output table with Name, Version, Author, RequiresWP, and RequiresPHP info.
|
||||
* @param array $current_theme_data Array with current theme data.
|
||||
* @param array $new_theme_data Array with uploaded theme data.
|
||||
*/
|
||||
echo apply_filters( 'install_theme_overwrite_comparison', $table, $current_theme_data, $this->upgrader->new_theme_data );
|
||||
|
||||
|
@ -352,8 +352,8 @@ class Theme_Upgrader extends WP_Upgrader {
|
||||
|
||||
wp_clean_themes_cache( $parsed_args['clear_update_cache'] );
|
||||
|
||||
// Ensure any future auto-update failures trigger a failure email by removing the last
|
||||
// failure notification from the list when themes update successfully.
|
||||
// Ensure any future auto-update failures trigger a failure email by removing
|
||||
// the last failure notification from the list when themes update successfully.
|
||||
$past_failure_emails = get_option( 'auto_plugin_theme_update_emails', array() );
|
||||
|
||||
if ( isset( $past_failure_emails[ $theme ] ) ) {
|
||||
@ -488,8 +488,8 @@ class Theme_Upgrader extends WP_Upgrader {
|
||||
remove_filter( 'upgrader_post_install', array( $this, 'current_after' ) );
|
||||
remove_filter( 'upgrader_clear_destination', array( $this, 'delete_old_theme' ) );
|
||||
|
||||
// Ensure any future auto-update failures trigger a failure email by removing the last
|
||||
// failure notification from the list when themes update successfully.
|
||||
// Ensure any future auto-update failures trigger a failure email by removing
|
||||
// the last failure notification from the list when themes update successfully.
|
||||
$past_failure_emails = get_option( 'auto_plugin_theme_update_emails', array() );
|
||||
|
||||
foreach ( $results as $theme => $result ) {
|
||||
|
Loading…
Reference in New Issue
Block a user