This repository has been archived on 2022-08-01. You can view files and clone it, but cannot push or open issues or pull requests.
Oldphaloskepsis/plugins/jetpack/modules/comments.php

51 lines
1.2 KiB
PHP
Raw Permalink Normal View History

2017-01-12 23:10:07 +00:00
<?php
/**
* Module Name: Comments
* Module Description: Let readers comment with WordPress.com, Twitter, Facebook, or Google+ accounts.
* First Introduced: 1.4
* Sort Order: 20
* Requires Connection: Yes
* Auto Activate: No
* Module Tags: Social
* Additional Search Queries: comments, comment, facebook, twitter, google+, social
*/
require dirname( __FILE__ ) . '/comments/comments.php';
if ( is_admin() ) {
require dirname( __FILE__ ) . '/comments/admin.php';
}
Jetpack_Sync::sync_options( __FILE__,
'comment_registration',
'require_name_email',
'show_avatars',
'avatar_default',
'highlander_comment_form_prompt',
'jetpack_comment_form_color_scheme'
);
function jetpack_comments_load() {
Jetpack::enable_module_configurable( __FILE__ );
Jetpack::module_configuration_load( __FILE__, 'jetpack_comments_configuration_load' );
}
function jetpack_comments_configuration_load() {
wp_safe_redirect( admin_url( 'options-discussion.php#jetpack-comments-settings' ) );
exit;
}
add_action( 'jetpack_modules_loaded', 'jetpack_comments_load' );
Jetpack::dns_prefetch( array(
'//jetpack.wordpress.com',
'//s0.wp.com',
'//s1.wp.com',
'//s2.wp.com',
'//public-api.wordpress.com',
'//0.gravatar.com',
'//1.gravatar.com',
'//2.gravatar.com',
) );