Completed
Push — fix/daddy ( b6fb92 )
by
unknown
07:06
created

sharedaddy.php ➔ sharedaddy_loaded()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * Module Name: Sharing
4
 * Module Description: Allow visitors to share your content.
5
 * Jumpstart Description: Twitter, Facebook and Google+ buttons at the bottom of each post, making it easy for visitors to share your content.
6
 * Sort Order: 7
7
 * Recommendation Order: 6
8
 * First Introduced: 1.1
9
 * Major Changes In: 1.2
10
 * Requires Connection: No
11
 * Auto Activate: Yes
12
 * Module Tags: Social, Recommended
13
 * Feature: Engagement, Jumpstart
14
 * Additional Search Queries: share, sharing, sharingbuttons, buttons, icons, email, facebook, twitter, google+, linkedin, pinterest, pocket, press this, print, reddit, tumblr
15
 */
16
17
if ( !function_exists( 'sharing_init' ) )
18
	include dirname( __FILE__ ).'/sharingbuttons/sharingbuttons.php';
19
20
add_action( 'jetpack_modules_loaded', 'sharingbuttons_loaded' );
21
22
function sharingbuttons_loaded() {
23
	Jetpack::enable_module_configurable( __FILE__ );
24
	Jetpack::module_configuration_load( __FILE__, 'sharingbuttons_configuration_load' );
25
}
26
27
function sharingbuttons_configuration_load() {
28
	wp_safe_redirect( menu_page_url( 'sharing', false ) . "#sharing-buttons" );
29
	exit;
30
}
31