diff --git a/tag-dropdown-widget.php b/tag-dropdown-widget.php index 3a80225fd518be0e0be11c590bb30a1031c67224..d9aa599edbe6b68ba99131ec0f9c3d8dacfed1ef 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' ) );