Docs: Improve the class DocBlock for WP_Widget to clarify which methods "should" vs "must" be overridden by extending sub-classes.

Props Frank-Klein.
Fixes #36703.

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


git-svn-id: http://core.svn.wordpress.org/trunk@37309 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Drew Jaynes 2016-05-02 04:53:27 +00:00
parent fe3b007fdd
commit 6683100d2c
2 changed files with 4 additions and 3 deletions

View File

@ -10,8 +10,9 @@
/**
* Core base class extended to register widgets.
*
* This class must be extended for each widget and WP_Widget::widget(), WP_Widget::update()
* and WP_Widget::form() need to be overridden.
* This class must be extended for each widget, and WP_Widget::widget() must be overriden.
*
* If adding widget options, WP_Widget::update() and WP_Widget::form() should also be overridden.
*
* @since 2.8.0
* @since 4.4.0 Moved to its own file from wp-includes/widgets.php

View File

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