Widgets: `$option_name` and `$alt_option_name` have been used as members ever since `WP_Widget` became an object in 2.8, but never declared.

See #37771.

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


git-svn-id: http://core.svn.wordpress.org/trunk@38259 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2016-08-22 21:51:28 +00:00
parent 7466118616
commit 1119536085
2 changed files with 19 additions and 1 deletions

View File

@ -37,6 +37,24 @@ class WP_Widget {
*/ */
public $name; public $name;
/**
* Option name for this widget type.
*
* @since 2.8.0
* @access public
* @var string
*/
public $option_name;
/**
* Alt option name for this widget type.
*
* @since 2.8.0
* @access public
* @var string
*/
public $alt_option_name;
/** /**
* Option array passed to wp_register_sidebar_widget(). * Option array passed to wp_register_sidebar_widget().
* *

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.7-alpha-38317'; $wp_version = '4.7-alpha-38318';
/** /**
* 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.