Make WordPress Core


Ignore:
Timestamp:
09/09/2021 09:39:39 PM (3 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/theme.php

    r51705 r51791  
    806806    } else {
    807807        /*
    808          * Since sync_registered_widgets() is called when initializing a theme in the Customizer,
     808         * Since retrieve_widgets() is called when initializing a theme in the Customizer,
    809809         * we need to remove the theme mods to avoid overwriting changes made via
    810810         * the Customizer when accessing wp-admin/widgets.php.
Note: See TracChangeset for help on using the changeset viewer.