mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-01 03:04:34 +00:00
Add @global annotations for wp-admin/*.
See #32444. git-svn-id: https://develop.svn.wordpress.org/trunk@32642 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -10,6 +10,9 @@
|
||||
* Display list of the available widgets.
|
||||
*
|
||||
* @since 2.5.0
|
||||
*
|
||||
* @global array $wp_registered_widgets
|
||||
* @global array $wp_registered_widget_controls
|
||||
*/
|
||||
function wp_list_widgets() {
|
||||
global $wp_registered_widgets, $wp_registered_widget_controls;
|
||||
@@ -99,6 +102,8 @@ function wp_list_widget_controls( $sidebar, $sidebar_name = '' ) {
|
||||
*
|
||||
* @since 2.5.0
|
||||
*
|
||||
* @global array $wp_registered_widgets
|
||||
*
|
||||
* @param array $params
|
||||
* @return array
|
||||
*/
|
||||
@@ -123,7 +128,14 @@ function wp_list_widget_controls_dynamic_sidebar( $params ) {
|
||||
return $params;
|
||||
}
|
||||
|
||||
function next_widget_id_number($id_base) {
|
||||
/**
|
||||
*
|
||||
* @global array $wp_registered_widgets
|
||||
*
|
||||
* @param string $id_base
|
||||
* @return int
|
||||
*/
|
||||
function next_widget_id_number( $id_base ) {
|
||||
global $wp_registered_widgets;
|
||||
$number = 1;
|
||||
|
||||
@@ -143,6 +155,10 @@ function next_widget_id_number($id_base) {
|
||||
*
|
||||
* @since 2.5.0
|
||||
*
|
||||
* @global array $wp_registered_widgets
|
||||
* @global array $wp_registered_widget_controls
|
||||
* @global array $sidebars_widgets
|
||||
*
|
||||
* @param array $sidebar_args
|
||||
* @return array
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user