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. git-svn-id: https://develop.svn.wordpress.org/trunk@38318 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
459f3aa9a3
commit
e8ab847c74
@ -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().
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user