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. Built from https://develop.svn.wordpress.org/trunk@33758 git-svn-id: http://core.svn.wordpress.org/trunk@33726 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f21cb339db
commit
fb75e4b938
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.4-alpha-33757';
|
||||
$wp_version = '4.4-alpha-33758';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
|
@ -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' );
|
||||
|
|
Loading…
Reference in New Issue