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. Built from https://develop.svn.wordpress.org/trunk@51733 git-svn-id: http://core.svn.wordpress.org/trunk@51341 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a87a8a1899
commit
5a7eca9a0e
|
@ -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.
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.9-alpha-51732';
|
||||
$wp_version = '5.9-alpha-51733';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue