Make WordPress Core


Ignore:
Timestamp:
09/09/2021 09:39:39 PM (4 years ago)
Author:
hellofromTonya
Message:

Widgets: Revert [51705].

While the new name is much better, it doesn't fully tell what will happen when invoked nor does it fully solve the root problems.

Why? The function is doing too much. And naming is hard.

Props azaozz, desrosj, andraganescu, zieladam, hellofromTonya.
See #53811.

File:
1 edited

Legend:

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

    r51786 r51791  
    9999     */
    100100    public function get_items( $request ) {
    101         sync_registered_widgets();
     101        retrieve_widgets();
    102102
    103103        $data = array();
     
    138138     */
    139139    public function get_item( $request ) {
    140         sync_registered_widgets();
     140        retrieve_widgets();
    141141
    142142        $sidebar = $this->get_sidebar( $request['id'] );
Note: See TracChangeset for help on using the changeset viewer.