Docs: Miscellaneous DocBlock corrections for plugin and theme updates.

See #49572.
Built from https://develop.svn.wordpress.org/trunk@48446


git-svn-id: http://core.svn.wordpress.org/trunk@48215 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2020-07-12 01:19:03 +00:00
parent cecf7b9823
commit 3f1650122a
6 changed files with 18 additions and 18 deletions

View File

@ -4466,7 +4466,7 @@ function wp_ajax_update_plugin() {
/* /*
* Plugin is already at the latest version. * 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. * 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. * Preferably something can be done to ensure `update_plugins` isn't empty.

View File

@ -232,11 +232,11 @@ class Plugin_Installer_Skin extends WP_Upgrader_Skin {
$table .= '</tbody></table>'; $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 * @since 5.5.0
* *
* @param string $table The output table with Name, Version, Author, RequiresWP and RequiresPHP info. * @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 $current_plugin_data Array with current plugin data.
* @param array $new_plugin_data Array with uploaded plugin data. * @param array $new_plugin_data Array with uploaded plugin data.
*/ */

View File

@ -247,8 +247,8 @@ class Plugin_Upgrader extends WP_Upgrader {
// Force refresh of plugin update information. // Force refresh of plugin update information.
wp_clean_plugins_cache( $parsed_args['clear_update_cache'] ); wp_clean_plugins_cache( $parsed_args['clear_update_cache'] );
// Ensure any future auto-update failures trigger a failure email by removing the last // Ensure any future auto-update failures trigger a failure email by removing
// failure notification from the list when plugins update successfully. // the last failure notification from the list when plugins update successfully.
$past_failure_emails = get_option( 'auto_plugin_theme_update_emails', array() ); $past_failure_emails = get_option( 'auto_plugin_theme_update_emails', array() );
if ( isset( $past_failure_emails[ $plugin ] ) ) { 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. // Cleanup our hooks, in case something else does a upgrade on this connection.
remove_filter( 'upgrader_clear_destination', array( $this, 'delete_old_plugin' ) ); remove_filter( 'upgrader_clear_destination', array( $this, 'delete_old_plugin' ) );
// Ensure any future auto-update failures trigger a failure email by removing the last // Ensure any future auto-update failures trigger a failure email by removing
// failure notification from the list when plugins update successfully. // the last failure notification from the list when plugins update successfully.
$past_failure_emails = get_option( 'auto_plugin_theme_update_emails', array() ); $past_failure_emails = get_option( 'auto_plugin_theme_update_emails', array() );
foreach ( $results as $plugin => $result ) { foreach ( $results as $plugin => $result ) {

View File

@ -267,11 +267,11 @@ class Theme_Installer_Skin extends WP_Upgrader_Skin {
$table .= '</tbody></table>'; $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 * @since 5.5.0
* *
* @param string $table The output table with Name, Version, Author, RequiresWP and RequiresPHP info. * @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 $current_theme_data Array with current theme data.
* @param array $new_theme_data Array with uploaded theme data. * @param array $new_theme_data Array with uploaded theme data.
*/ */

View File

@ -352,8 +352,8 @@ class Theme_Upgrader extends WP_Upgrader {
wp_clean_themes_cache( $parsed_args['clear_update_cache'] ); wp_clean_themes_cache( $parsed_args['clear_update_cache'] );
// Ensure any future auto-update failures trigger a failure email by removing the last // Ensure any future auto-update failures trigger a failure email by removing
// failure notification from the list when themes update successfully. // the last failure notification from the list when themes update successfully.
$past_failure_emails = get_option( 'auto_plugin_theme_update_emails', array() ); $past_failure_emails = get_option( 'auto_plugin_theme_update_emails', array() );
if ( isset( $past_failure_emails[ $theme ] ) ) { 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_post_install', array( $this, 'current_after' ) );
remove_filter( 'upgrader_clear_destination', array( $this, 'delete_old_theme' ) ); remove_filter( 'upgrader_clear_destination', array( $this, 'delete_old_theme' ) );
// Ensure any future auto-update failures trigger a failure email by removing the last // Ensure any future auto-update failures trigger a failure email by removing
// failure notification from the list when themes update successfully. // the last failure notification from the list when themes update successfully.
$past_failure_emails = get_option( 'auto_plugin_theme_update_emails', array() ); $past_failure_emails = get_option( 'auto_plugin_theme_update_emails', array() );
foreach ( $results as $theme => $result ) { foreach ( $results as $theme => $result ) {

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.5-beta1-48445'; $wp_version = '5.5-beta1-48446';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.