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

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

Props SergeyBiryukov.
Merges [51280] to the 5.8 branch.
See #52628, #53461.
Built from https://develop.svn.wordpress.org/branches/5.8@51311


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50920 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
desrosj 2021-07-02 18:55:00 +00:00
parent 8d871746a4
commit 20b93039f3
4 changed files with 13 additions and 1 deletions

View File

@ -21,6 +21,8 @@ class WP_REST_Pattern_Directory_Controller extends WP_REST_Controller {
/** /**
* Constructs the controller. * Constructs the controller.
*
* @since 5.8.0
*/ */
public function __construct() { public function __construct() {
$this->namespace = 'wp/v2'; $this->namespace = 'wp/v2';
@ -29,6 +31,8 @@ class WP_REST_Pattern_Directory_Controller extends WP_REST_Controller {
/** /**
* Registers the necessary REST API routes. * Registers the necessary REST API routes.
*
* @since 5.8.0
*/ */
public function register_routes() { public function register_routes() {
register_rest_route( register_rest_route(

View File

@ -365,6 +365,8 @@ class WP_REST_Sidebars_Controller extends WP_REST_Controller {
/** /**
* Retrieves the block type' schema, conforming to JSON Schema. * Retrieves the block type' schema, conforming to JSON Schema.
* *
* @since 5.8.0
*
* @return array Item schema data. * @return array Item schema data.
*/ */
public function get_item_schema() { public function get_item_schema() {

View File

@ -413,6 +413,8 @@ class WP_REST_Widget_Types_Controller extends WP_REST_Controller {
* - form: The widget's admin form after updating the widget with the * - form: The widget's admin form after updating the widget with the
* given form data. * given form data.
* *
* @since 5.8.0
*
* @global WP_Widget_Factory $wp_widget_factory * @global WP_Widget_Factory $wp_widget_factory
* *
* @param WP_REST_Request $request Full details about the request. * @param WP_REST_Request $request Full details about the request.
@ -507,6 +509,8 @@ class WP_REST_Widget_Types_Controller extends WP_REST_Controller {
* Returns the output of WP_Widget::widget() when called with the provided * Returns the output of WP_Widget::widget() when called with the provided
* instance. Used by encode_form_data() to preview a widget. * instance. Used by encode_form_data() to preview a widget.
* @since 5.8.0
*
* @param string $widget The widget's PHP class name (see class-wp-widget.php). * @param string $widget The widget's PHP class name (see class-wp-widget.php).
* @param array $instance Widget instance settings. * @param array $instance Widget instance settings.
* @return string * @return string
@ -521,6 +525,8 @@ class WP_REST_Widget_Types_Controller extends WP_REST_Controller {
* Returns the output of WP_Widget::form() when called with the provided * Returns the output of WP_Widget::form() when called with the provided
* instance. Used by encode_form_data() to preview a widget's form. * instance. Used by encode_form_data() to preview a widget's form.
* *
* @since 5.8.0
*
* @param WP_Widget $widget_object Widget object to call widget() on. * @param WP_Widget $widget_object Widget object to call widget() on.
* @param array $instance Widget instance settings. * @param array $instance Widget instance settings.
* @return string * @return string

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.8-RC1-51310'; $wp_version = '5.8-RC1-51311';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.