Skip to content

Commit f759a36

Browse files
Docs: Document the $wp_registered_sidebars global in wp_map_sidebars_widgets().
Follow-up to [41555]. Props shailu25. See #60021. git-svn-id: https://develop.svn.wordpress.org/trunk@57234 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 5df258b commit f759a36

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/wp-includes/widgets.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1370,6 +1370,8 @@ function retrieve_widgets( $theme_changed = false ) {
13701370
* @since 4.9.0
13711371
* @since 4.9.2 Always tries to restore widget assignments from previous data, not just if sidebars needed mapping.
13721372
*
1373+
* @global array $wp_registered_sidebars The registered sidebars.
1374+
*
13731375
* @param array $existing_sidebars_widgets List of sidebars and their widget instance IDs.
13741376
* @return array Mapped sidebars widgets.
13751377
*/

0 commit comments

Comments
 (0)