Make WordPress Core

Changeset 51965


Ignore:
Timestamp:
11/01/2021 02:29:42 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Docs: Add a @since note for the rest_namespace argument of register_post_type() and register_taxonomy().

Use 3-digit, x.x.x-style semantic versioning for @since tags of the $rest_namespace property in WP_Post_Type and WP_Taxonomy.

Add a @since note to WP_REST_Taxonomies_Controller::get_item_schema() for the visibility and rest_namespace properties.

The rest_base property was also added after the method was initially introduced, but that happened during the same release cycle, so it doesn't need a separate @since note.

Follow-up to [38832], [39191], [42729], [51959], [51961], [51962], [51964].

See #53399.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-post-type.php

    r51962 r51965  
    362362     * The namespace for this post type's REST API endpoints.
    363363     *
    364      * @since 5.9
     364     * @since 5.9.0
    365365     * @var string|bool $rest_namespace
    366366     */
  • trunk/src/wp-includes/class-wp-taxonomy.php

    r51964 r51965  
    203203     * The namespace for this taxonomy's REST API endpoints.
    204204     *
    205      * @since 5.9
     205     * @since 5.9.0
    206206     * @var string|bool $rest_namespace
    207207     */
  • trunk/src/wp-includes/post.php

    r51962 r51965  
    13721372 * @since 5.0.0 The `template` and `template_lock` arguments were added.
    13731373 * @since 5.3.0 The `supports` argument will now accept an array of arguments for a feature.
     1374 * @since 5.9.0 The `rest_namespace` argument was added.
    13741375 *
    13751376 * @global array $wp_post_types List of post types.
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-taxonomies-controller.php

    r51964 r51965  
    302302     *
    303303     * @since 4.7.0
     304     * @since 5.0.0 The `visibility` property was added.
     305     * @since 5.9.0 The `rest_namespace` property was added.
    304306     *
    305307     * @return array Item schema data.
  • trunk/src/wp-includes/taxonomy.php

    r51964 r51965  
    356356 * @since 5.4.0 Added the registered taxonomy object as a return value.
    357357 * @since 5.5.0 Introduced `default_term` argument.
     358 * @since 5.9.0 Introduced `rest_namespace` argument.
    358359 *
    359360 * @global WP_Taxonomy[] $wp_taxonomies Registered taxonomies.
Note: See TracChangeset for help on using the changeset viewer.