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.


git-svn-id: https://develop.svn.wordpress.org/trunk@37343 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Drew Jaynes 2016-05-02 04:52:55 +00:00
parent c7bed4f8c6
commit dbba2255f8
1 changed files with 3 additions and 2 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