| @@ 46-49 (lines=4) @@ | ||
| 43 | if ( ! Jetpack::is_module_active( 'likes' ) ) { |
|
| 44 | $active = Jetpack::get_active_modules(); |
|
| 45 | ||
| 46 | if ( ! in_array( 'sharedaddy', $active ) && ! in_array( 'publicize', $active ) ) { |
|
| 47 | // we don't have a sharing page yet |
|
| 48 | add_action( 'admin_menu', array( $this->settings, 'sharing_menu' ) ); |
|
| 49 | } |
|
| 50 | ||
| 51 | if ( in_array( 'publicize', $active ) && ! in_array( 'sharedaddy', $active ) ) { |
|
| 52 | // we have a sharing page but not the global options area |
|
| @@ 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 |
|
| @@ 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 | ||