From e8ab847c742304fcc63a7ea6ab90bbf3a2cb0aa4 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Mon, 22 Aug 2016 21:50:44 +0000 Subject: [PATCH] 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 --- src/wp-includes/class-wp-widget.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/wp-includes/class-wp-widget.php b/src/wp-includes/class-wp-widget.php index 44f3686ddc..de9db07cc9 100644 --- a/src/wp-includes/class-wp-widget.php +++ b/src/wp-includes/class-wp-widget.php @@ -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(). *