Commit f1722d3e authored by Erick Hitter's avatar Erick Hitter
Browse files

Introduce magic getter to correct fatal error introduced in 246be76c when...

Introduce magic getter to correct fatal error introduced in 246be76c when visibility was added to class properties
parent 51bf1110
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment