carousel
9 months ago
comment-likes
9 months ago
comments
9 months ago
custom-post-types
9 months ago
external-media
9 months ago
google-fonts
9 months ago
gravatar
6 years ago
infinite-scroll
9 months ago
likes
9 months ago
markdown
9 months ago
memberships
9 months ago
photon-cdn
9 months ago
plugin-search
9 months ago
post-by-email
9 months ago
related-posts
9 months ago
scan
9 months ago
seo-tools
9 months ago
sharedaddy
9 months ago
shortcodes
9 months ago
simple-payments
9 months ago
site-icon
9 months ago
sitemaps
9 months ago
stats
9 months ago
subscriptions
9 months ago
theme-tools
9 months ago
tiled-gallery
9 months ago
verification-tools
9 months ago
videopress
9 months ago
widget-visibility
9 months ago
widgets
9 months ago
woocommerce-analytics
9 months ago
wordads
9 months ago
wpcom-tos
9 months ago
account-protection.php
9 months ago
blaze.php
9 months ago
blocks.php
9 months ago
carousel.php
9 months ago
comment-likes.php
9 months ago
comments.php
9 months ago
contact-form.php
9 months ago
copy-post.php
9 months ago
custom-content-types.php
9 months ago
google-fonts.php
9 months ago
gravatar-hovercards.php
9 months ago
infinite-scroll.php
9 months ago
json-api.php
9 months ago
latex.php
9 months ago
likes.php
9 months ago
markdown.php
9 months ago
module-extras.php
9 months ago
module-headings.php
9 months ago
module-info.php
9 months ago
monitor.php
9 months ago
notes.php
9 months ago
photon-cdn.php
9 months ago
photon.php
9 months ago
plugin-search.php
9 months ago
post-by-email.php
9 months ago
post-list.php
9 months ago
protect.php
9 months ago
publicize.php
9 months ago
related-posts.php
9 months ago
search.php
9 months ago
seo-tools.php
9 months ago
sharedaddy.php
9 months ago
shortcodes.php
9 months ago
shortlinks.php
9 months ago
simple-payments.php
9 months ago
sitemaps.php
9 months ago
sso.php
9 months ago
stats.php
9 months ago
subscriptions.php
9 months ago
theme-tools.php
9 months ago
tiled-gallery.php
9 months ago
vaultpress.php
9 months ago
verification-tools.php
9 months ago
videopress.php
9 months ago
waf.php
9 months ago
widget-visibility.php
9 months ago
widgets.php
9 months ago
woocommerce-analytics.php
9 months ago
wordads.php
9 months ago
wpgroho.js
1 year ago
search.php
50 lines
| 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 |