Skip to content

Commit

Permalink
Docs: Document some globals in wp-includes/widgets.php.
Browse files Browse the repository at this point in the history
Follow-up to [41555], [50995].

Props upadalavipul.
See #60021.

git-svn-id: https://develop.svn.wordpress.org/trunk@57216 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed Dec 21, 2023
1 parent 77dcb17 commit 9cedd5f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/wp-includes/widgets.php
Original file line number Diff line number Diff line change
Expand Up @@ -1544,6 +1544,8 @@ function wp_map_sidebars_widgets( $existing_sidebars_widgets ) {
*
* @since 4.9.0
*
* @global array $wp_registered_widgets
*
* @param array $sidebars_widgets List of sidebars and their widget instance IDs.
* @param array $allowed_widget_ids Optional. List of widget IDs to compare against. Default: Registered widgets.
* @return array Sidebars with allowed widgets.
Expand Down Expand Up @@ -1968,6 +1970,9 @@ function wp_assign_widget_to_sidebar( $widget_id, $sidebar_id ) {
*
* @since 5.8.0
*
* @global array $wp_registered_widgets
* @global array $wp_registered_sidebars
*
* @param string $widget_id Widget ID.
* @param string $sidebar_id Sidebar ID.
* @return string
Expand Down Expand Up @@ -2034,6 +2039,8 @@ function wp_render_widget( $widget_id, $sidebar_id ) {
*
* @since 5.8.0
*
* @global array $wp_registered_widget_controls
*
* @param string $id Widget ID.
* @return string|null
*/
Expand Down

0 comments on commit 9cedd5f

Please sign in to comment.