- Timestamp:
- 09/09/2021 09:39:39 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php
r51705 r51791 110 110 */ 111 111 public function get_items( $request ) { 112 sync_registered_widgets();112 retrieve_widgets(); 113 113 114 114 $prepared = array(); … … 152 152 */ 153 153 public function get_item( $request ) { 154 sync_registered_widgets();154 retrieve_widgets(); 155 155 156 156 $widget_id = $request['id']; … … 238 238 239 239 /* 240 * sync_registered_widgets() contains logic to move "hidden" or "lost" widgets to the240 * retrieve_widgets() contains logic to move "hidden" or "lost" widgets to the 241 241 * wp_inactive_widgets sidebar based on the contents of the $sidebars_widgets global. 242 242 * … … 249 249 wp_get_sidebars_widgets(); 250 250 251 sync_registered_widgets();251 retrieve_widgets(); 252 252 253 253 $widget_id = $request['id']; … … 314 314 315 315 /* 316 * sync_registered_widgets() contains logic to move "hidden" or "lost" widgets to the316 * retrieve_widgets() contains logic to move "hidden" or "lost" widgets to the 317 317 * wp_inactive_widgets sidebar based on the contents of the $sidebars_widgets global. 318 318 * … … 325 325 wp_get_sidebars_widgets(); 326 326 327 sync_registered_widgets();327 retrieve_widgets(); 328 328 329 329 $widget_id = $request['id'];
Note: See TracChangeset
for help on using the changeset viewer.