Code Duplication    Length = 2-4 lines in 2 locations

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
	}

modules/likes.php 1 location

@@ 57-60 (lines=4) @@
54
55
			$active = Jetpack::get_active_modules();
56
57
			if ( ! in_array( 'sharedaddy', $active ) && ! in_array( 'publicize', $active ) ) {
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 ) && ! in_array( 'sharedaddy', $active ) ) {
63
				// we have a sharing page but not the global options area