WordPress.org

Make WordPress Core

Changeset 41798


Ignore:
Timestamp:
10/09/17 16:34:50 (10 days ago)
Author:
obenland
Message:

Widgets: Update globals documentation.

It doesn't look like wp_register_sidebar_widget() ever used a global named $wp_register_widget_defaults. It does however make use of $wp_registered_widget_controls now.

See [8960], [30776].

Props upadalavipul.
Fixes #41592.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/widgets.php

    r41673 r41798  
    316316 * @since 2.2.0 
    317317 * 
    318  * @global array $wp_registered_widgets       Uses stored registered widgets. 
    319  * @global array $wp_register_widget_defaults Retrieves widget defaults. 
     318 * @global array $wp_registered_widgets            Uses stored registered widgets. 
     319 * @global array $wp_registered_widget_controls    Stores the registered widget control (options). 
    320320 * @global array $wp_registered_widget_updates 
    321321 * @global array $_wp_deprecated_widgets_callbacks 
Note: See TracChangeset for help on using the changeset viewer.