From 0336236dedd182c4cdcbcff8dfab904aa418a84e Mon Sep 17 00:00:00 2001 From: Greg Ichneumon Brown Date: Tue, 4 Dec 2018 18:20:04 +0000 Subject: [PATCH] Fix fatal error in dev mode, and add a message to inform the user why the widget is missing. --- modules/widgets/search.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/modules/widgets/search.php b/modules/widgets/search.php index 8e176c8cd8332..f275b79d5ccbc 100644 --- a/modules/widgets/search.php +++ b/modules/widgets/search.php @@ -266,6 +266,19 @@ public function widget( $args, $instance ) { $display_filters = false; + if ( Jetpack::is_development_mode() ) { + echo $args['before_widget']; + ?>
+
+ +
+
update_search_results_aggregations();