WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #53811, comment 2


Ignore:
Timestamp:
07/28/2021 12:52:51 PM (3 months ago)
Author:
hellofromTonya
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #53811, comment 2

    initial v1  
    11The `retrieve_widgets` function does more than retrieve hidden or lost widgets. In essence, it is rebuilding the global `$sidebars_widgets` by:
    22
    3 - Remapping widgets (in each sidebar) against the widget registry -> `_wp_remove_unregistered_widgets()`
    4 - Remapping sidebars against the sidebar registry -> `wp_map_sidebars_widgets()`
     3- Validation and remapping widgets (in each sidebar) against the widget registry -> `_wp_remove_unregistered_widgets()`
     4- Validation and remapping sidebars against the sidebar registry -> `wp_map_sidebars_widgets()`
    55- Finding all hidden or lost widgets and assigning them to the inactive sidebar
    66- Updating the database with the new `$sidebars_widgets` configuration