PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 10.1
Jetpack – WP Security, Backup, Speed, & Growth v10.1
16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 13.8.3 13.9.2 14.0.1 14.1.1 14.2.2 14.3.1 All 501 releases
jetpack / modules / comments.php

comments.php in Jetpack – WP Security, Backup, Speed, & Growth 10.1, at modules/comments.php

52 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Module Name: Comments
4 * Module Description: Let visitors use a WordPress.com, Twitter, Facebook, or Google account to comment
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, twitter, google+, 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 '//s1.wp.com',
23 '//s2.wp.com',
24 '//public-api.wordpress.com',
25 '//0.gravatar.com',
26 '//1.gravatar.com',
27 '//2.gravatar.com',
28 ),
29 'dns-prefetch'
30 );
31
32 /*
33 * Add the main commenting system.
34 */
35 require __DIR__ . '/comments/comments.php';
36
37 if ( is_admin() ) {
38 /**
39 * Add the admin functionality.
40 */
41 require __DIR__ . '/comments/admin.php';
42 }
43
44 /**
45 * Module loader.
46 */
47 function jetpack_comments_load() {
48 Jetpack::enable_module_configurable( __FILE__ );
49 }
50
51 add_action( 'jetpack_modules_loaded', 'jetpack_comments_load' );
52