| 1 |
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName |
| 2 |
/** |
| 3 |
* Module Name: Search |
| 4 |
* Module Description: Help visitors quickly find answers with highly relevant instant search results and powerful filtering. |
| 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 |
Automattic\Jetpack\Search\Jetpack_Initializer::initialize(); |
| 21 |
|
| 22 |
/** |
| 23 |
* These are old legacy class names that were deprecated due to the move to packages. |
| 24 |
* |
| 25 |
* @todo Does this make more sense as a legacy dir in the search package? |
| 26 |
*/ |
| 27 |
|
| 28 |
/** |
| 29 |
* Jetpack Search deprecated class. |
| 30 |
* |
| 31 |
* @deprecated 10.6 |
| 32 |
*/ |
| 33 |
class Jetpack_Search { |
| 34 |
/** |
| 35 |
* Singleton |
| 36 |
*/ |
| 37 |
protected function __construct() { |
| 38 |
} |
| 39 |
|
| 40 |
/** |
| 41 |
* Return the instance of the new class. |
| 42 |
*/ |
| 43 |
public static function instance() { |
| 44 |
// Explicitly provide the blog ID, just in case. |
| 45 |
return Classic_Search::instance( Search_Helper::get_wpcom_site_id() ); |
| 46 |
} |
| 47 |
} |
| 48 |
|