From 9f91a2a2459879668ea463250bd746a2677be6c4 Mon Sep 17 00:00:00 2001 From: audrasjb Date: Thu, 18 Nov 2021 23:19:08 +0000 Subject: [PATCH] Docs: Add missing parameters in `in_plugin_update_message-{$file}` filter. Follow-up to [51733]. Props costdev, audrasjb, SergeyBiryukov. Fixes #40006. Built from https://develop.svn.wordpress.org/trunk@52212 git-svn-id: http://core.svn.wordpress.org/trunk@51804 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/update.php | 11 ++++++++--- wp-includes/version.php | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/wp-admin/includes/update.php b/wp-admin/includes/update.php index 03cd1f2bcd..be653440f6 100644 --- a/wp-admin/includes/update.php +++ b/wp-admin/includes/update.php @@ -574,14 +574,19 @@ function wp_plugin_update_row( $file, $plugin_data ) { * @type string $author_name Plugin author's name. * @type bool $update Whether there's an available update. Default null. * } - * @param object $response { - * An object of metadata about the available plugin update. + * @param array $response { + * An array of metadata about the available plugin update. * * @type int $id Plugin ID. * @type string $slug Plugin slug. - * @type string $new_version New plugin version. + * @type string $plugin Plugin basename. * @type string $url Plugin URL. * @type string $package Plugin update package URL. + * @type array $icons An array of icon URLs. + * @type array $banners An array of banner URLs. + * @type string $requires Specify the minimum required WordPress version. + * @type string $tested Specify the latest version of WordPress that the plugin has been tested with. + * @type string $new_version Specify the new version of the plugin. * } */ do_action( "in_plugin_update_message-{$file}", $plugin_data, $response ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores diff --git a/wp-includes/version.php b/wp-includes/version.php index c8e8dfc853..8af48f78d1 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '5.9-alpha-52211'; +$wp_version = '5.9-alpha-52212'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.