Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment