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:
parent
c7bed4f8c6
commit
dbba2255f8
@ -10,8 +10,9 @@
|
|||||||
/**
|
/**
|
||||||
* Core base class extended to register widgets.
|
* Core base class extended to register widgets.
|
||||||
*
|
*
|
||||||
* This class must be extended for each widget and WP_Widget::widget(), WP_Widget::update()
|
* This class must be extended for each widget, and WP_Widget::widget() must be overriden.
|
||||||
* and WP_Widget::form() need to be overridden.
|
*
|
||||||
|
* If adding widget options, WP_Widget::update() and WP_Widget::form() should also be overridden.
|
||||||
*
|
*
|
||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
* @since 4.4.0 Moved to its own file from wp-includes/widgets.php
|
* @since 4.4.0 Moved to its own file from wp-includes/widgets.php
|
||||||
|
Loading…
Reference in New Issue
Block a user