mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-16 19:46:21 +00:00
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:
parent
fe3b007fdd
commit
6683100d2c
@ -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
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user