. */ define( 'RELEVANSSI_PREMIUM', false ); add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), 'relevanssi_action_links' ); global $wp_version; if ( version_compare( $wp_version, '5.1', '>=' ) ) { add_action( 'wp_insert_site', 'relevanssi_new_blog', 10, 1 ); } else { add_action( 'wpmu_new_blog', 'relevanssi_new_blog', 10, 1 ); } global $relevanssi_variables; global $wpdb; $relevanssi_variables['relevanssi_table'] = $wpdb->prefix . 'relevanssi'; $relevanssi_variables['stopword_table'] = $wpdb->prefix . 'relevanssi_stopwords'; $relevanssi_variables['log_table'] = $wpdb->prefix . 'relevanssi_log'; $relevanssi_variables['content_boost_default'] = 1; $relevanssi_variables['comment_boost_default'] = 0.75; $relevanssi_variables['title_boost_default'] = 5; $relevanssi_variables['comment_boost_default'] = 0.75; $relevanssi_variables['post_type_weight_defaults']['post_tag'] = 0.75; $relevanssi_variables['post_type_weight_defaults']['category'] = 0.75; $relevanssi_variables['post_type_index_defaults'] = array( 'post', 'page' ); $relevanssi_variables['database_version'] = 5; $relevanssi_variables['file'] = __FILE__; $relevanssi_variables['plugin_dir'] = plugin_dir_path( __FILE__ ); $relevanssi_variables['plugin_basename'] = plugin_basename( __FILE__ ); $relevanssi_variables['plugin_version'] = '4.7.2.1'; require_once 'lib/admin-ajax.php'; require_once 'lib/common.php'; require_once 'lib/excerpts-highlights.php'; require_once 'lib/indexing.php'; require_once 'lib/init.php'; require_once 'lib/install.php'; require_once 'lib/interface.php'; require_once 'lib/log.php'; require_once 'lib/search.php'; require_once 'lib/search-tax-query.php'; require_once 'lib/search-query-restrictions.php'; require_once 'lib/shortcodes.php'; require_once 'lib/sorting.php'; require_once 'lib/stopwords.php';