@@ 55-57 (lines=3) @@ | ||
52 | ||
53 | $active = Jetpack::get_active_modules(); |
|
54 | ||
55 | if ( ! in_array( 'sharedaddy', $active ) && ! in_array( 'publicize', $active ) ) { |
|
56 | add_action( 'admin_menu', array( $this, 'sharing_menu' ) ); // we don't have a sharing page yet |
|
57 | } |
|
58 | ||
59 | if ( in_array( 'publicize', $active ) && ! in_array( 'sharedaddy', $active ) ) { |
|
60 | add_action( 'pre_admin_screen_sharing', array( $this, 'sharing_block' ), 20 ); // we have a sharing page but not the global options area |
@@ 50-51 (lines=2) @@ | ||
47 | add_filter( 'jetpack_sync_post_module_custom_data', array( $this, 'sync_post_module_custom_data' ), 10, 2 ); |
|
48 | // if sharedaddy isn't active, the sharing menu hasn't been added yet |
|
49 | $active = Jetpack::get_active_modules(); |
|
50 | if ( in_array( 'publicize', $active ) && !in_array( 'sharedaddy', $active ) ) |
|
51 | add_action( 'admin_menu', array( &$publicize_ui, 'sharing_menu' ) ); |
|
52 | } |
|
53 | } |
|
54 |