mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user