Docs: Add a file header to wp-includes/class-wp-widget.php, created when the `WP_Widget` class was moved to its own file in [33746].

It's important for every file in WordPress, regardless of makeup or architecture, to have its own file header, even if the file contains nothing but a class. When parsed, files and classes are mutually exclusive and should be documented with this in mind.

See [33746]. See #33413.

Built from https://develop.svn.wordpress.org/trunk@33755


git-svn-id: http://core.svn.wordpress.org/trunk@33723 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Drew Jaynes 2015-08-26 07:45:21 +00:00
parent 10503cd3af
commit 2aa0a42661
2 changed files with 12 additions and 3 deletions

View File

@ -1,11 +1,20 @@
<?php <?php
/** /**
* This class must be extended for each widget and WP_Widget::widget(), WP_Widget::update() * Class file for WP_Widget
* and WP_Widget::form() need to be over-ridden.
* *
* @package WordPress * @package WordPress
* @subpackage Widgets * @subpackage Widgets
* @since 4.4.0
*/
/**
* WP_Widget class.
*
* This class must be extended for each widget and WP_Widget::widget(), WP_Widget::update()
* and WP_Widget::form() need to be overridden.
*
* @since 2.8.0 * @since 2.8.0
* @since 4.4.0 Moved to its own file from wp-includes/widgets.php
*/ */
class WP_Widget { class WP_Widget {

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.4-alpha-33754'; $wp_version = '4.4-alpha-33755';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.