Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 2
n/a
0 / 0
CRAP
n/a
0 / 0
Jetpack_Search
n/a
0 / 0
n/a
0 / 0
2
n/a
0 / 0
 __construct
n/a
0 / 0
n/a
0 / 0
1
 instance
n/a
0 / 0
n/a
0 / 0
1
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
17use Automattic\Jetpack\Search\Classic_Search;
18use Automattic\Jetpack\Search\Helper as Search_Helper;
19
20if ( ! 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 */
35class 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}