Make WordPress Core


Ignore:
Timestamp:
11/19/2021 10:15:26 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Docs: Restore [51733], accidentally reverted in [52212].

Document some more $response values in the in_plugin_update_message-{$file} filter:

  • banners_rtl
  • requires_php

Follow-up to [51733], [52212].

Fixes #40006.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/update.php

    r52212 r52224  
    575575                 *     @type bool   $update      Whether there's an available update. Default null.
    576576                 * }
    577                  * @param array $response {
    578                  *     An array of metadata about the available plugin update.
     577                 * @param object $response {
     578                 *     An object of metadata about the available plugin update.
    579579                 *
    580                  *     @type int    $id          Plugin ID.
    581                  *     @type string $slug        Plugin slug.
    582                  *     @type string $plugin      Plugin basename.
    583                  *     @type string $url         Plugin URL.
    584                  *     @type string $package     Plugin update package URL.
    585                  *     @type array  $icons       An array of icon URLs.
    586                  *     @type array  $banners     An array of banner URLs.
    587                  *     @type string $requires    Specify the minimum required WordPress version.
    588                  *     @type string $tested      Specify the latest version of WordPress that the plugin has been tested with.
    589                  *     @type string $new_version Specify the new version of the plugin.
     580                 *     @type int    $id           Plugin ID.
     581                 *     @type string $slug         Plugin slug.
     582                 *     @type string $plugin       Plugin basename.
     583                 *     @type string $new_version  New plugin version.
     584                 *     @type string $url          Plugin URL.
     585                 *     @type string $package      Plugin update package URL.
     586                 *     @type array  $icons        An array of plugin icon URLs.
     587                 *     @type array  $banners      An array of plugin banner URLs.
     588                 *     @type array  $banners_rtl  An array of plugin RTL banner URLs.
     589                 *     @type string $requires     The version of WordPress which the plugin requires.
     590                 *     @type string $tested       The version of WordPress the plugin is tested against.
     591                 *     @type string $requires_php The version of PHP which the plugin requires.
    590592                 * }
    591593                 */
Note: See TracChangeset for help on using the changeset viewer.