| @@ 57-60 (lines=4) @@ | ||
| 54 | if ( ! Jetpack::is_module_active( 'likes' ) ) { |
|
| 55 | $active = Jetpack::get_active_modules(); |
|
| 56 | ||
| 57 | if ( ! in_array( 'sharedaddy', $active, true ) && ! in_array( 'publicize', $active, true ) ) { |
|
| 58 | // we don't have a sharing page yet. |
|
| 59 | add_action( 'admin_menu', array( $this->settings, 'sharing_menu' ) ); |
|
| 60 | } |
|
| 61 | ||
| 62 | if ( in_array( 'publicize', $active, true ) && ! in_array( 'sharedaddy', $active, true ) ) { |
|
| 63 | // we have a sharing page but not the global options area. |
|
| @@ 59-61 (lines=3) @@ | ||
| 56 | if ( $this->in_jetpack ) { |
|
| 57 | // if sharedaddy isn't active, the sharing menu hasn't been added yet. |
|
| 58 | $active = Jetpack::get_active_modules(); |
|
| 59 | if ( in_array( 'publicize', $active, true ) && ! in_array( 'sharedaddy', $active, true ) ) { |
|
| 60 | add_action( 'admin_menu', array( &$publicize_ui, 'sharing_menu' ) ); |
|
| 61 | } |
|
| 62 | ||
| 63 | /* |
|
| 64 | * The Publicize Options array does not currently have UI since it is being added |
|
| @@ 75-78 (lines=4) @@ | ||
| 72 | ||
| 73 | $active = Jetpack::get_active_modules(); |
|
| 74 | ||
| 75 | if ( ! in_array( 'sharedaddy', $active, true ) && ! in_array( 'publicize', $active, true ) ) { |
|
| 76 | // we don't have a sharing page yet. |
|
| 77 | add_action( 'admin_menu', array( $this->settings, 'sharing_menu' ) ); |
|
| 78 | } |
|
| 79 | ||
| 80 | if ( in_array( 'publicize', $active, true ) && ! in_array( 'sharedaddy', $active, true ) ) { |
|
| 81 | // we have a sharing page but not the global options area. |
|