From f1722d3eee1513a56bab8496c248cde27e826482 Mon Sep 17 00:00:00 2001 From: Erick Hitter <ehitter@gmail.com> Date: Sun, 25 Aug 2013 11:16:28 -0400 Subject: [PATCH] Introduce magic getter to correct fatal error introduced in 246be76 when visibility was added to class properties --- tag-dropdown-widget.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tag-dropdown-widget.php b/tag-dropdown-widget.php index a287a07..f25d292 100644 --- a/tag-dropdown-widget.php +++ b/tag-dropdown-widget.php @@ -76,6 +76,18 @@ class taxonomy_dropdown_widget_plugin { register_deactivation_hook( __FILE__, array( $this, 'deactivation_hook' ) ); } + /** + * Allow access to certain variables that were previously public + * + * @return mixed + */ + public function __get( $var ) { + if ( 'option_defaults' == $var ) + return $this->option_defaults; + + return false; + } + /** * Run plugin cleanup on activation * @uses this::cleanup -- GitLab