Docs: Add inline-docblocks for the `require_once()` calls that now bring in the `WP_Widget` and `WP_Widget_Factory` classes, as well as general core widgets functionality, as of [33746].

See [33746]. See #33413.


git-svn-id: https://develop.svn.wordpress.org/trunk@33758 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Drew Jaynes 2015-08-26 08:00:35 +00:00
parent fc691e0457
commit 2fda97b15a
1 changed files with 12 additions and 3 deletions

View File

@ -1,7 +1,9 @@
<?php
/**
* API for creating dynamic sidebar without hardcoding functionality into
* themes. Includes both internal WordPress routines and theme use routines.
* themes
*
* Includes both internal WordPress routines and theme use routines.
*
* This functionality was found in a plugin before WordPress 2.2 release which
* included it in the core from that point on.
@ -13,7 +15,9 @@
* @subpackage Widgets
*/
/* Global Variables */
//
// Global Variables
//
/** @ignore */
global $wp_registered_sidebars, $wp_registered_widgets, $wp_registered_widget_controls, $wp_registered_widget_updates;
@ -83,6 +87,11 @@ $GLOBALS['_wp_deprecated_widgets_callbacks'] = array(
'wp_widget_recent_comments_control'
);
/** WP_Widget class */
require_once( ABSPATH . WPINC . '/class-wp-widget.php' );
/** WP_Widget_Factory class */
require_once( ABSPATH . WPINC . '/class-wp-widget-factory.php' );
require_once( ABSPATH . WPINC . '/widget-functions.php' );
/** Core widgets functionality */
require_once( ABSPATH . WPINC . '/widget-functions.php' );