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