Skip to content
Snippets Groups Projects
Commit a38f44d8 authored by Erick Hitter's avatar Erick Hitter
Browse files

Note why the plugin class, which is a singleton, also populates a global variable.

parent cffd30b9
No related branches found
No related tags found
No related merge requests found
......@@ -361,6 +361,8 @@ class taxonomy_dropdown_widget_plugin {
return $options_sanitized;
}
}
// Prior to introduction of singleton, plugin was instantiated in a global. Continuing to do so improves backwards compatibility.
$GLOBALS['taxonomy_dropdown_widget_plugin'] = taxonomy_dropdown_widget_plugin::get_instance();
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment