WordPress.org

Make WordPress Core

Ticket #51060: 51060.diff

File 51060.diff, 653 bytes (added by psykro, 9 months ago)

Adds the relevant entry to the docblock

  • src/wp-includes/rest-api.php

    diff --git a/src/wp-includes/rest-api.php b/src/wp-includes/rest-api.php
    index 12e3df3247..cfb1a09069 100644
    a b define( 'REST_API_VERSION', '2.0' ); 
    2121 *
    2222 * @since 4.4.0
    2323 * @since 5.1.0 Added a _doing_it_wrong() notice when not called on or after the rest_api_init hook.
     24 * @since 5.5.0 Added a _doing_it_wrong() notice when the required permission_callback argument is not defined.
    2425 *
    2526 * @param string $namespace The first URL segment after core prefix. Should be unique to your package/plugin.
    2627 * @param string $route     The base URL for route you are adding.