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:
@@ -37,6 +37,24 @@ class WP_Widget {
|
||||
*/
|
||||
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().
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user