carousel
1 year ago
cloudflare-analytics
2 years ago
comment-likes
5 years ago
comments
1 year ago
custom-post-types
1 year ago
external-media
1 year ago
geo-location
1 year ago
google-fonts
1 year ago
gravatar
6 years ago
infinite-scroll
1 year ago
likes
1 year ago
markdown
1 year ago
memberships
1 year ago
photon-cdn
1 year ago
plugin-search
1 year ago
post-by-email
1 year ago
related-posts
1 year ago
scan
1 year ago
seo-tools
1 year ago
sharedaddy
1 year ago
shortcodes
1 year ago
simple-payments
1 year ago
site-icon
2 years ago
sitemaps
1 year ago
stats
2 years ago
subscriptions
1 year ago
theme-tools
1 year ago
tiled-gallery
1 year ago
verification-tools
4 years ago
videopress
1 year ago
widget-visibility
1 year ago
widgets
1 year ago
woocommerce-analytics
1 year ago
wordads
1 year ago
wpcom-tos
5 years ago
account-protection.php
1 year ago
blaze.php
2 years ago
blocks.php
1 year ago
carousel.php
2 years ago
comment-likes.php
2 years ago
comments.php
2 years ago
contact-form.php
1 year ago
copy-post.php
1 year ago
custom-content-types.php
1 year ago
geo-location.php
1 year ago
google-fonts.php
2 years ago
gravatar-hovercards.php
2 years ago
infinite-scroll.php
3 years ago
json-api.php
5 years ago
latex.php
4 years ago
likes.php
1 year ago
markdown.php
4 years ago
masterbar.php
1 year ago
module-extras.php
1 year ago
module-headings.php
1 year ago
module-info.php
1 year ago
monitor.php
2 years ago
notes.php
1 year ago
photon-cdn.php
1 year ago
photon.php
3 years ago
plugin-search.php
1 year ago
post-by-email.php
5 years ago
post-list.php
4 years ago
protect.php
2 years ago
publicize.php
1 year ago
related-posts.php
2 years ago
search.php
4 years ago
seo-tools.php
2 years ago
sharedaddy.php
2 years ago
shortcodes.php
1 year ago
shortlinks.php
1 year ago
sitemaps.php
1 year ago
sso.php
1 year ago
stats.php
1 year ago
subscriptions.php
1 year ago
theme-tools.php
1 year ago
tiled-gallery.php
4 years ago
vaultpress.php
2 years ago
verification-tools.php
5 years ago
videopress.php
4 years ago
waf.php
1 year ago
widget-visibility.php
4 years ago
widgets.php
1 year ago
woocommerce-analytics.php
2 years ago
wordads.php
2 years ago
wpgroho.js
1 year ago
search.php
46 lines
| 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 | /** |
| 21 | * These are old legacy class names that were deprecated due to the move to packages. |
| 22 | * |
| 23 | * @todo Does this make more sense as a legacy dir in the search package? |
| 24 | */ |
| 25 | |
| 26 | /** |
| 27 | * Jetpack Search deprecated class. |
| 28 | * |
| 29 | * @deprecated 10.6 |
| 30 | */ |
| 31 | class Jetpack_Search { |
| 32 | /** |
| 33 | * Singleton |
| 34 | */ |
| 35 | protected function __construct() { |
| 36 | } |
| 37 | |
| 38 | /** |
| 39 | * Return the instance of the new class. |
| 40 | */ |
| 41 | public static function instance() { |
| 42 | // Explicitly provide the blog ID, just in case. |
| 43 | return Classic_Search::instance( Search_Helper::get_wpcom_site_id() ); |
| 44 | } |
| 45 | } |
| 46 |