Make WordPress Core

Changeset 51280 for trunk


Ignore:
Timestamp:
06/30/2021 01:57:10 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Docs: Add missing @since tags for some REST API methods added in 5.8.

Follow-up to [50995], [51021].

See #52628, #53461.

Location:
trunk/src/wp-includes/rest-api/endpoints
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-pattern-directory-controller.php

    r51208 r51280  
    2222    /**
    2323     * Constructs the controller.
     24     *
     25     * @since 5.8.0
    2426     */
    2527    public function __construct() {
     
    3032    /**
    3133     * Registers the necessary REST API routes.
     34     *
     35     * @since 5.8.0
    3236     */
    3337    public function register_routes() {
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-sidebars-controller.php

    r51235 r51280  
    366366     * Retrieves the block type' schema, conforming to JSON Schema.
    367367     *
     368     * @since 5.8.0
     369     *
    368370     * @return array Item schema data.
    369371     */
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-widget-types-controller.php

    r51279 r51280  
    414414     *             given form data.
    415415     *
     416     * @since 5.8.0
     417     *
    416418     * @global WP_Widget_Factory $wp_widget_factory
    417419     *
     
    508510     * instance. Used by encode_form_data() to preview a widget.
    509511
     512     * @since 5.8.0
     513     *
    510514     * @param string    $widget   The widget's PHP class name (see class-wp-widget.php).
    511515     * @param array     $instance Widget instance settings.
     
    521525     * Returns the output of WP_Widget::form() when called with the provided
    522526     * instance. Used by encode_form_data() to preview a widget's form.
     527     *
     528     * @since 5.8.0
    523529     *
    524530     * @param WP_Widget $widget_object Widget object to call widget() on.
Note: See TracChangeset for help on using the changeset viewer.