From 31a8c5e8f5b220e35bbe84825908368548931dda Mon Sep 17 00:00:00 2001 From: Alain Belair Date: Fri, 15 Dec 2017 14:47:20 -0500 Subject: [PATCH] fix widget id naming --- src/components/WidgetComponent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/WidgetComponent.php b/src/components/WidgetComponent.php index b41e9d5..38dec62 100644 --- a/src/components/WidgetComponent.php +++ b/src/components/WidgetComponent.php @@ -57,7 +57,7 @@ public function initializeWidget($id, array $config, AtkWp $plugin) $this->plugin = $plugin; $this->name = $config['title']; //make sure our id_base is unique - $this->id_base = $plugin->name.$id; + $this->id_base = $plugin->pluginName.'-'.$id; //Widget option_name in Option table that will hold the widget instance field value. $this->option_name = 'widget_'.$this->id_base; $this->widget_options = wp_parse_args($config['widget_ops'], ['classname' => $this->option_name]);