Here is the solution for the problem. You need to change the following Function in the file DavesWordPressLiveSearch.php
Current Version 2.8 Code
public static function advanced_search_init() {
if (self::isSearchablePage()) {
wp_enqueue_script('jquery');
wp_enqueue_script('daves-wordpress-live-search', plugin_dir_url(__FILE__).'js/daves-wordpress-live-search.js', 'jquery');
self::inlineSettings();
}
load_plugin_textdomain('dwls', false, dirname( plugin_basename( __FILE__ )) . '/languages/');
}
Change into this Function:
public static function advanced_search_init() {
load_plugin_textdomain( 'dwls', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
if ( self::isSearchablePage() ) {
wp_enqueue_script( 'daves-wordpress-live-search', plugin_dir_url( __FILE__ ) . 'js/daves-wordpress-live-search.js', array( 'jquery' ) );
self::inlineSettings();
}
}
Hints to the solution:
- The function "load_plugin_textdomain" need to be loaded before self::inlineSettings
- The request of jQuery can be made in "wp_enqueue_script" with the parameter "jQuery" as an array in dependencies, currently jQuery is loaded before because the parameter is a string and should be an array