From ef7841483bde81be4c757e0b417016828327fc6b Mon Sep 17 00:00:00 2001 From: Bryan Willis Date: Thu, 19 Nov 2015 11:44:14 -0600 Subject: [PATCH] Return Normal Search on Else check Just an idea.... I made a similar shortcode awhile back with a slightly different approach. I like to keep my themes working on the chance that a plugin gets disabled so I try to make fallbacks for these kind of things. --- ajaxy-live-search-shortcode.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ajaxy-live-search-shortcode.php b/ajaxy-live-search-shortcode.php index 22f294b..57c20fc 100644 --- a/ajaxy-live-search-shortcode.php +++ b/ajaxy-live-search-shortcode.php @@ -17,9 +17,9 @@ function ajaxy_shortcode() { if( function_exists( 'ajaxy_search_form' ) && class_exists( 'AjaxyLiveSearch' ) ) { ajaxy_search_form(); } - else { ?> -
Please enable the Ajaxy Live Search plugin
-