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
......@@ -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();
Supports Markdown
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