@@ 51-54 (lines=4) @@ | ||
48 | if ( ! Jetpack::is_module_active( 'likes' ) ) { |
|
49 | $active = Jetpack::get_active_modules(); |
|
50 | ||
51 | if ( ! in_array( 'sharedaddy', $active ) && ! in_array( 'publicize', $active ) ) { |
|
52 | // we don't have a sharing page yet |
|
53 | add_action( 'admin_menu', array( $this->settings, 'sharing_menu' ) ); |
|
54 | } |
|
55 | ||
56 | if ( in_array( 'publicize', $active ) && ! in_array( 'sharedaddy', $active ) ) { |
|
57 | // we have a sharing page but not the global options area |
@@ 46-47 (lines=2) @@ | ||
43 | if ( $this->in_jetpack) { |
|
44 | // if sharedaddy isn't active, the sharing menu hasn't been added yet |
|
45 | $active = Jetpack::get_active_modules(); |
|
46 | if ( in_array( 'publicize', $active ) && !in_array( 'sharedaddy', $active ) ) |
|
47 | add_action( 'admin_menu', array( &$publicize_ui, 'sharing_menu' ) ); |
|
48 | } |
|
49 | } |
|
50 |
@@ 55-58 (lines=4) @@ | ||
52 | ||
53 | $active = Jetpack::get_active_modules(); |
|
54 | ||
55 | if ( ! in_array( 'sharedaddy', $active ) && ! in_array( 'publicize', $active ) ) { |
|
56 | // we don't have a sharing page yet |
|
57 | add_action( 'admin_menu', array( $this->settings, 'sharing_menu' ) ); |
|
58 | } |
|
59 | ||
60 | if ( in_array( 'publicize', $active ) && ! in_array( 'sharedaddy', $active ) ) { |
|
61 | // we have a sharing page but not the global options area |