Changeset 12158
- Timestamp:
- 10/31/2022 01:20:46 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-search.php
r11650 r12158 67 67 68 68 // add_filter( 'jetpack_search_abort', array( $this, 'log_jetpack_search_abort' ) ); 69 70 require_once( ABSPATH . 'wp-content/plugins/jetpack/modules/search/class.jetpack-search.php' ); 71 require_once( ABSPATH . 'wp-content/plugins/jetpack/modules/search/class.jetpack-search-helpers.php' ); 69 72 70 // $es_query_args = apply_filters( 'jetpack_search_es_query_args', $es_query_args, $query ); 73 // 71 74 72 add_filter( 'jetpack_search_es_wp_query_args', array( $this, 'jetpack_search_es_wp_query_args' ), 10, 2 ); 75 add_filter( 'jetpack_search_es_query_args', array( $this, 'jetpack_search_es_query_args' ), 10, 2 ); 76 77 \Jetpack_Search::instance()->setup(); 73 add_filter( 'jetpack_search_es_query_args', array( $this, 'jetpack_search_es_query_args' ), 10, 2 ); 74 75 // Load Jetpack Search. 76 include_once WP_PLUGIN_DIR . '/jetpack/vendor/autoload_packages.php'; 77 78 if ( class_exists( '\Automattic\Jetpack\Search\Classic_Search' ) ) { 79 // New Jetpack 80 \Automattic\Jetpack\Search\Classic_Search::instance(); 81 82 } else { 83 // Old(er) Jetpack, load the classic search module, Temporarily. 84 85 include_once WP_PLUGIN_DIR . '/jetpack/modules/search/class.jetpack-search.php'; 86 include_once WP_PLUGIN_DIR . '/jetpack/modules/search/class.jetpack-search-helpers.php'; 87 88 \Jetpack_Search::instance()->setup(); 89 } 90 78 91 } 79 92
Note: See TracChangeset
for help on using the changeset viewer.