From a38f44d8623eb41614330996edb859d53a4c3e63 Mon Sep 17 00:00:00 2001 From: Erick Hitter <ehitter@gmail.com> Date: Sun, 29 Dec 2013 16:48:11 -0500 Subject: [PATCH] Note why the plugin class, which is a singleton, also populates a global variable. --- tag-dropdown-widget.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tag-dropdown-widget.php b/tag-dropdown-widget.php index 7d39d82..e5259d1 100644 --- a/tag-dropdown-widget.php +++ b/tag-dropdown-widget.php @@ -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(); /** -- GitLab