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:
parent
fc691e0457
commit
2fda97b15a
@ -1,7 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* API for creating dynamic sidebar without hardcoding functionality into
|
* 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
|
* This functionality was found in a plugin before WordPress 2.2 release which
|
||||||
* included it in the core from that point on.
|
* included it in the core from that point on.
|
||||||
@ -13,7 +15,9 @@
|
|||||||
* @subpackage Widgets
|
* @subpackage Widgets
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Global Variables */
|
//
|
||||||
|
// Global Variables
|
||||||
|
//
|
||||||
|
|
||||||
/** @ignore */
|
/** @ignore */
|
||||||
global $wp_registered_sidebars, $wp_registered_widgets, $wp_registered_widget_controls, $wp_registered_widget_updates;
|
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_recent_comments_control'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/** WP_Widget class */
|
||||||
require_once( ABSPATH . WPINC . '/class-wp-widget.php' );
|
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 . '/class-wp-widget-factory.php' );
|
||||||
|
|
||||||
|
/** Core widgets functionality */
|
||||||
require_once( ABSPATH . WPINC . '/widget-functions.php' );
|
require_once( ABSPATH . WPINC . '/widget-functions.php' );
|
Loading…
Reference in New Issue
Block a user