PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 4.2.5
Jetpack – WP Security, Backup, Speed, & Growth v4.2.5
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 4.2.5, at modules/comments.php

42 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 /**
4 * Module Name: Comments
5 * Module Description: Let readers comment with WordPress.com, Twitter, Facebook, or Google+ accounts.
6 * First Introduced: 1.4
7 * Sort Order: 20
8 * Requires Connection: Yes
9 * Auto Activate: No
10 * Module Tags: Social
11 * Additional Search Queries: comments, comment, facebook, twitter, google+, social
12 */
13
14 require dirname( __FILE__ ) . '/comments/comments.php';
15
16 if ( is_admin() ) {
17 require dirname( __FILE__ ) . '/comments/admin.php';
18 }
19
20 function jetpack_comments_load() {
21 Jetpack::enable_module_configurable( __FILE__ );
22 Jetpack::module_configuration_load( __FILE__, 'jetpack_comments_configuration_load' );
23 }
24
25 function jetpack_comments_configuration_load() {
26 wp_safe_redirect( admin_url( 'options-discussion.php#jetpack-comments-settings' ) );
27 exit;
28 }
29
30 add_action( 'jetpack_modules_loaded', 'jetpack_comments_load' );
31
32 Jetpack::dns_prefetch( array(
33 '//jetpack.wordpress.com',
34 '//s0.wp.com',
35 '//s1.wp.com',
36 '//s2.wp.com',
37 '//public-api.wordpress.com',
38 '//0.gravatar.com',
39 '//1.gravatar.com',
40 '//2.gravatar.com',
41 ) );
42