Make WordPress Core

Changeset 63391


Ignore:
Timestamp:
08/28/2026 11:09:30 AM (3 weeks ago)
Author:
gziolo
Message:

Abilities API: Add missing @since 7.1.0 changelog entries

Document the 7.1 changes to existing docblocks that had no changelog line: the public meta argument, the wp_ability_validate_input and wp_ability_validate_output filters, exception handling in invoke_callback(), and the new schema property and collection parameters in the REST list controller.

Follow-up to [62238], [62398], [62420], [62548], [62729], [62737].

Props khokansardar.
See #65058, #64311, #64990, #65568.

Location:
trunk/src/wp-includes
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/abilities-api.php

    r63343 r63391  
    233233 *
    234234 * @since 6.9.0
     235 * @since 7.1.0 Added the `public` meta argument.
    235236 * @since 7.2.0 The `category` argument is now optional and defaults to `uncategorized`.
    236237 *
  • trunk/src/wp-includes/abilities-api/class-wp-abilities-registry.php

    r63343 r63391  
    4141         *
    4242         * @since 6.9.0
     43         * @since 7.1.0 Added the `public` meta argument.
    4344         * @since 7.2.0 The `category` argument is now optional and defaults to `uncategorized`.
    4445         *
     
    111112                 *
    112113                 * @since 6.9.0
     114                 * @since 7.1.0 Added the `public` meta argument.
    113115                 * @since 7.2.0 The `category` argument is now optional and defaults to `uncategorized`.
    114116                 *
  • trunk/src/wp-includes/abilities-api/class-wp-ability.php

    r62934 r63391  
    140140         *
    141141         * @since 6.9.0
     142         * @since 7.1.0 Added the `public` meta argument.
    142143         *
    143144         * @see wp_register_ability()
     
    210211         *
    211212         * @since 6.9.0
     213         * @since 7.1.0 Added the `public` meta argument.
    212214         *
    213215         * @see WP_Abilities_Registry::register()
     
    513515         *
    514516         * @since 6.9.0
     517         * @since 7.1.0 Added the `wp_ability_validate_input` filter.
    515518         *
    516519         * @param mixed $input Optional. The input data to validate. Default `null`.
     
    578581         *
    579582         * @since 6.9.0
     583         * @since 7.1.0 Exceptions thrown by the callback are now caught and returned as a `WP_Error`.
    580584         *
    581585         * @param callable $callback The callable to invoke.
     
    706710         *
    707711         * @since 6.9.0
     712         * @since 7.1.0 Added the `wp_ability_validate_output` filter.
    708713         *
    709714         * @param mixed $output The output data to validate.
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-abilities-v1-list-controller.php

    r62831 r63391  
    245245         *
    246246         * @since 6.9.0
     247         * @since 7.1.0 Added the `meta.public` property.
    247248         *
    248249         * @return array<string, mixed> Item schema data.
     
    331332         *
    332333         * @since 6.9.0
     334         * @since 7.1.0 Added the `namespace` and `meta` parameters and the `rest_abilities_collection_params` filter.
    333335         *
    334336         * @return array<string, mixed> Collection parameters.
Note: See TracChangeset for help on using the changeset viewer.