Notice: Undefined index
-
I came across this error on your plugin today:
Notice: Undefined index: widget-id in /public_html/stage/wp-content/plugins/widget-context/widget-context.php on line 158
I revised this line to the following and it resolved the issue, figured I would post here incase you want to include in your next update
if(isset($this->context_options[$widget_id])) { $do_show = $this->check_widget_visibility($this->context_options[$widget_id]); } else { $do_show = false; }
Also line 353 had another, here’s what I used to patch that:
if(!isset($vis_settings['location']['check_wordcount'])) $vis_settings['location']['check_wordcount'] = "off";
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Notice: Undefined index’ is closed to new replies.