kollapsminoriteten/wp-content/plugins/jetpack/modules/search.php

48 lines
1.2 KiB
PHP
Raw Normal View History

2022-04-02 10:26:41 +02:00
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName
2019-11-15 23:26:29 +01:00
/**
* Module Name: Search
2020-05-06 17:20:49 +02:00
* Module Description: Help visitors quickly find answers with highly relevant instant search results and powerful filtering.
2019-11-15 23:26:29 +01:00
* First Introduced: 5.0
* Sort Order: 34
* Free: false
* Requires Connection: Yes
* Auto Activate: No
* Feature: Search
* Additional Search Queries: search, elastic, elastic search, elasticsearch, fast search, search results, search performance, google search
2020-10-20 18:05:12 +02:00
* Plans: business, complete
2021-04-27 08:32:47 +02:00
*
* @package automattic/jetpack
2019-11-15 23:26:29 +01:00
*/
2022-04-02 10:26:41 +02:00
use Automattic\Jetpack\Search\Classic_Search;
use Automattic\Jetpack\Search\Helper as Search_Helper;
2019-11-15 23:26:29 +01:00
2022-04-02 10:26:41 +02:00
Automattic\Jetpack\Search\Jetpack_Initializer::initialize();
/**
* These are old legacy class names that were deprecated due to the move to packages.
*
* @todo Does this make more sense as a legacy dir in the search package?
*/
/**
* Jetpack Search deprecated class.
*
* @deprecated 10.6
*/
class Jetpack_Search {
/**
* Singleton
*/
protected function __construct() {
}
/**
* Return the instance of the new class.
*/
public static function instance() {
// Explicitly provide the blog ID, just in case.
return Classic_Search::instance( Search_Helper::get_wpcom_site_id() );
}
}