mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
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:
parent
cecf7b9823
commit
3f1650122a
@ -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 ) {
|
||||
|
@ -13,7 +13,7 @@
|
||||
*
|
||||
* @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.
|
||||
|
Loading…
Reference in New Issue
Block a user