PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 15.1
Jetpack – WP Security, Backup, Speed, & Growth v15.1
16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 13.8.3 13.9.2 14.0.1 14.1.1 14.2.2 14.3.1 All 501 releases
jetpack / modules / search.php

search.php in Jetpack – WP Security, Backup, Speed, & Growth 15.1, at modules/search.php

50 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName
2 /**
3 * Module Name: Search
4 * Module Description: Instantly deliver the most relevant results to your visitors.
5 * First Introduced: 5.0
6 * Sort Order: 34
7 * Free: false
8 * Requires Connection: Yes
9 * Auto Activate: No
10 * Feature: Search
11 * Additional Search Queries: search, elastic, elastic search, elasticsearch, fast search, search results, search performance, google search
12 * Plans: business, complete
13 *
14 * @package automattic/jetpack
15 */
16
17 use Automattic\Jetpack\Search\Classic_Search;
18 use Automattic\Jetpack\Search\Helper as Search_Helper;
19
20 if ( ! defined( 'ABSPATH' ) ) {
21 exit( 0 );
22 }
23
24 /**
25 * These are old legacy class names that were deprecated due to the move to packages.
26 *
27 * @todo Does this make more sense as a legacy dir in the search package?
28 */
29
30 /**
31 * Jetpack Search deprecated class.
32 *
33 * @deprecated 10.6
34 */
35 class Jetpack_Search {
36 /**
37 * Singleton
38 */
39 protected function __construct() {
40 }
41
42 /**
43 * Return the instance of the new class.
44 */
45 public static function instance() {
46 // Explicitly provide the blog ID, just in case.
47 return Classic_Search::instance( Search_Helper::get_wpcom_site_id() );
48 }
49 }
50