PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3
Jetpack – WP Security, Backup, Speed, & Growth v16.3
16.3 16.3-beta 16.3-a.5 16.3-a.7 16.3-a.3 16.3-a.1 16.2 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 All 508 releases
← All changes | modules/search.php +49 -0 16.2-beta → 16.3 View file →
@@ -1,0 +1,49 @@
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 +}