WordPress.org

Make WordPress Core

Changeset 48828


Ignore:
Timestamp:
08/19/2020 12:31:23 PM (13 months ago)
Author:
SergeyBiryukov
Message:

Docs: Add a @since note to register_rest_route() about the _doing_it_wrong() notice when the required permission_callback argument is not set.

Follow-up to [48526].

Props psykro.
Merges [48827] to the 5.5 branch.
Fixes #51060.

Location:
branches/5.5
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.5

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

    r48768 r48828  
    2121 *
    2222 * @since 4.4.0
    23  * @since 5.1.0 Added a _doing_it_wrong() notice when not called on or after the rest_api_init hook.
     23 * @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 set.
    2425 *
    2526 * @param string $namespace The first URL segment after core prefix. Should be unique to your package/plugin.
Note: See TracChangeset for help on using the changeset viewer.