carousel
1 year ago
comment-likes
1 year ago
comments
1 year ago
custom-post-types
1 year ago
external-media
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
1 year 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
1 year ago
blocks.php
1 year ago
carousel.php
1 year ago
comment-likes.php
1 year ago
comments.php
1 year ago
contact-form.php
1 year ago
copy-post.php
1 year ago
custom-content-types.php
1 year ago
google-fonts.php
1 year ago
gravatar-hovercards.php
1 year ago
infinite-scroll.php
1 year ago
json-api.php
1 year ago
latex.php
1 year ago
likes.php
1 year ago
markdown.php
1 year ago
module-extras.php
1 year ago
module-headings.php
1 year ago
module-info.php
1 year ago
monitor.php
1 year ago
notes.php
1 year ago
photon-cdn.php
1 year ago
photon.php
1 year ago
plugin-search.php
1 year ago
post-by-email.php
1 year ago
post-list.php
1 year ago
protect.php
1 year ago
publicize.php
1 year ago
related-posts.php
1 year ago
search.php
1 year ago
seo-tools.php
1 year ago
sharedaddy.php
1 year 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
1 year ago
vaultpress.php
1 year ago
verification-tools.php
1 year ago
videopress.php
1 year ago
waf.php
1 year ago
widget-visibility.php
1 year ago
widgets.php
1 year ago
woocommerce-analytics.php
1 year ago
wordads.php
1 year ago
wpgroho.js
1 year ago
comments.php
51 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Module Name: Comments |
| 4 | * Module Description: Replace the default comment form with a modern, feature‑rich alternative. |
| 5 | * First Introduced: 1.4 |
| 6 | * Sort Order: 20 |
| 7 | * Requires Connection: Yes |
| 8 | * Auto Activate: No |
| 9 | * Module Tags: Social |
| 10 | * Feature: Engagement |
| 11 | * Additional Search Queries: comments, comment, facebook, social |
| 12 | * |
| 13 | * @package automattic/jetpack |
| 14 | */ |
| 15 | |
| 16 | use Automattic\Jetpack\Assets; |
| 17 | |
| 18 | Assets::add_resource_hint( |
| 19 | array( |
| 20 | '//jetpack.wordpress.com', |
| 21 | '//s0.wp.com', |
| 22 | '//public-api.wordpress.com', |
| 23 | '//0.gravatar.com', |
| 24 | '//1.gravatar.com', |
| 25 | '//2.gravatar.com', |
| 26 | ), |
| 27 | 'dns-prefetch' |
| 28 | ); |
| 29 | |
| 30 | /* |
| 31 | * Add the main commenting system. |
| 32 | */ |
| 33 | require __DIR__ . '/comments/comments.php'; |
| 34 | require __DIR__ . '/comments/subscription-modal-on-comment/class-jetpack-subscription-modal-on-comment.php'; |
| 35 | |
| 36 | if ( is_admin() ) { |
| 37 | /** |
| 38 | * Add the admin functionality. |
| 39 | */ |
| 40 | require __DIR__ . '/comments/admin.php'; |
| 41 | } |
| 42 | |
| 43 | /** |
| 44 | * Module loader. |
| 45 | */ |
| 46 | function jetpack_comments_load() { |
| 47 | Jetpack::enable_module_configurable( __FILE__ ); |
| 48 | } |
| 49 | |
| 50 | add_action( 'jetpack_modules_loaded', 'jetpack_comments_load' ); |
| 51 |