blob: b30ccd73a1628b73894f24b9f061c4e9578236d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
<?php
/**
* Module Name: Jetpack Comments
* Module Description: A new comment system that has integrated social media login options.
* First Introduced: 1.4
* Sort Order: 2
*/
require dirname( __FILE__ ) . '/comments/comments.php';
if ( is_admin() ) {
require dirname( __FILE__ ) . '/comments/admin.php';
}
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' );
|