Make WordPress Core


Ignore:
Timestamp:
07/02/2021 06:51:12 PM (4 years ago)
Author:
desrosj
Message:

Docs: Document the globals used in WP_REST_Widget_Types_Controller and WP_REST_Widgets_Controller.

Follow-up to [50995].

Props SergeyBiryukov.
Merges [51279] to the 5.8 branch.
See #52628, #53461.

Location:
branches/5.8
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.8

  • branches/5.8/src/wp-includes/rest-api/endpoints/class-wp-rest-widget-types-controller.php

    r51229 r51310  
    198198     * @since 5.8.0
    199199     *
    200      * @global array $wp_registered_widgets The list of registered widgets.
     200     * @global WP_Widget_Factory $wp_widget_factory
     201     * @global array             $wp_registered_widgets The list of registered widgets.
    201202     *
    202203     * @return array Array of widgets.
     
    412413     * - form:     The widget's admin form after updating the widget with the
    413414     *             given form data.
     415     *
     416     * @global WP_Widget_Factory $wp_widget_factory
    414417     *
    415418     * @param WP_REST_Request $request Full details about the request.
Note: See TracChangeset for help on using the changeset viewer.