From 70d2cd8c53554101f7d92cb7ed9abd651689d833 Mon Sep 17 00:00:00 2001
From: Erick Hitter <ehitter@gmail.com>
Date: Sun, 29 Dec 2013 15:52:22 -0500
Subject: [PATCH] Yet more singleton implementation improvements.

---
 tag-dropdown-widget.php | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/tag-dropdown-widget.php b/tag-dropdown-widget.php
index 3a80225..d9aa599 100644
--- a/tag-dropdown-widget.php
+++ b/tag-dropdown-widget.php
@@ -57,11 +57,18 @@ class taxonomy_dropdown_widget_plugin {
 	public static function get_instance() {
 		if ( ! is_a( self::$__instance, __CLASS__ ) ) {
 			self::$__instance = new self;
+
+			self::$__instance->setup();
 		}
 
 		return self::$__instance;
 	}
 
+	/**
+	 * Silence is golden!
+	 */
+	private function __construct() {}
+
 	/**
 	 * Register actions and activation/deactivation hooks
 	 * @uses add_action
@@ -69,7 +76,7 @@ class taxonomy_dropdown_widget_plugin {
 	 * @uses register_deactivation_hook
 	 * @return null
 	 */
-	protected function __construct() {
+	protected function setup() {
 		add_action( 'widgets_init', array( $this, 'action_widgets_init' ) );
 
 		register_activation_hook( __FILE__, array( $this, 'activation_hook' ) );
-- 
GitLab