From c6a9a598bb956d688fcee0b56277f0be4d9e5dec Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 7 Sep 2021 12:53:35 +0000 Subject: [PATCH] Docs: Correct documentation for the `in_plugin_update_message-{$file}` filter. The `$response` parameter is an object, not an array. This is a minor inconsistency with the corresponding `in_theme_update_message-{$theme_key}` action for themes, where the `$response` parameter is an array. For backward compatibility, it is safer not to change the parameter type at this point, but to make sure the documentation is correct. Follow-up to [11193], [16141], [26540]. Props davidmosterd, audrasjb, SergeyBiryukov. See #40006. git-svn-id: https://develop.svn.wordpress.org/trunk@51733 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/update.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wp-admin/includes/update.php b/src/wp-admin/includes/update.php index aeccc3e049..29a5f0c783 100644 --- a/src/wp-admin/includes/update.php +++ b/src/wp-admin/includes/update.php @@ -558,7 +558,7 @@ function wp_plugin_update_row( $file, $plugin_data ) { * * @since 2.8.0 * - * @param array $plugin_data { + * @param array $plugin_data { * An array of plugin metadata. * * @type string $name The human-readable name of the plugin. @@ -574,8 +574,8 @@ 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 array $response { - * An array of metadata about the available plugin update. + * @param object $response { + * An object of metadata about the available plugin update. * * @type int $id Plugin ID. * @type string $slug Plugin slug.