comments.php
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * Module Name: Comments |
| 5 | * Module Description: Let visitors use a WordPress.com, Twitter, Facebook, or Google account to comment |
| 6 | * First Introduced: 1.4 |
| 7 | * Sort Order: 20 |
| 8 | * Requires Connection: Yes |
| 9 | * Auto Activate: No |
| 10 | * Module Tags: Social |
| 11 | * Feature: Engagement |
| 12 | * Additional Search Queries: comments, comment, facebook, twitter, google+, social |
| 13 | */ |
| 14 | |
| 15 | require dirname( __FILE__ ) . '/comments/comments.php'; |
| 16 | |
| 17 | if ( is_admin() ) { |
| 18 | require dirname( __FILE__ ) . '/comments/admin.php'; |
| 19 | } |
| 20 | |
| 21 | function jetpack_comments_load() { |
| 22 | Jetpack::enable_module_configurable( __FILE__ ); |
| 23 | } |
| 24 | |
| 25 | add_action( 'jetpack_modules_loaded', 'jetpack_comments_load' ); |
| 26 | |
| 27 | Jetpack::dns_prefetch( array( |
| 28 | '//jetpack.wordpress.com', |
| 29 | '//s0.wp.com', |
| 30 | '//s1.wp.com', |
| 31 | '//s2.wp.com', |
| 32 | '//public-api.wordpress.com', |
| 33 | '//0.gravatar.com', |
| 34 | '//1.gravatar.com', |
| 35 | '//2.gravatar.com', |
| 36 | ) ); |
| 37 |