Changeset 51279
- Timestamp:
- 06/30/2021 12:54:10 PM (3 years ago)
- Location:
- trunk/src/wp-includes/rest-api/endpoints
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-widget-types-controller.php
r51229 r51279 198 198 * @since 5.8.0 199 199 * 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. 201 202 * 202 203 * @return array Array of widgets. … … 412 413 * - form: The widget's admin form after updating the widget with the 413 414 * given form data. 415 * 416 * @global WP_Widget_Factory $wp_widget_factory 414 417 * 415 418 * @param WP_REST_Request $request Full details about the request. -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php
r51277 r51279 229 229 * @since 5.8.0 230 230 * 231 * @global WP_Widget_Factory $wp_widget_factory 232 * 231 233 * @param WP_REST_Request $request Full details about the request. 232 234 * @return WP_REST_Response|WP_Error Response object on success, or WP_Error object on failure. … … 290 292 * @since 5.8.0 291 293 * 294 * @global WP_Widget_Factory $wp_widget_factory 292 295 * @global array $wp_registered_widget_updates The registered widget update functions. 293 * @global WP_Widget_Factory $wp_widget_factory294 296 * 295 297 * @param WP_REST_Request $request Full details about the request. … … 297 299 */ 298 300 public function delete_item( $request ) { 299 global $wp_ registered_widget_updates, $wp_widget_factory;301 global $wp_widget_factory, $wp_registered_widget_updates; 300 302 301 303 retrieve_widgets(); … … 417 419 * 418 420 * @since 5.8.0 421 * 422 * @global WP_Widget_Factory $wp_widget_factory 423 * @global array $wp_registered_widget_updates The registered widget update functions. 419 424 * 420 425 * @param WP_REST_Request $request Full details about the request. … … 561 566 * @since 5.8.0 562 567 * 563 * @global array $wp_registered_sidebars The registered sidebars. 564 * @global array $wp_registered_widgets The registered widgets. 565 * @global array $wp_registered_widget_controls The registered widget controls. 568 * @global WP_Widget_Factory $wp_widget_factory 569 * @global array $wp_registered_widgets The registered widgets. 566 570 * 567 571 * @param array $item An array containing a widget_id and sidebar_id.
Note: See TracChangeset
for help on using the changeset viewer.