Code Duplication    Length = 5-5 lines in 2 locations

modules/likes.php 1 location

@@ 60-64 (lines=5) @@
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
62
				add_action( 'pre_admin_screen_sharing', array( $this->settings, 'sharing_block' ), 20 );
63
				add_action( 'pre_admin_screen_sharing', array( $this->settings, 'updated_message' ), -10 );
64
			}
65
66
			if( ! in_array( 'sharedaddy', $active ) ) {
67
				add_action( 'admin_init', array( $this->settings, 'process_update_requests_if_sharedaddy_not_loaded' ) );

modules/comment-likes.php 1 location

@@ 56-60 (lines=5) @@
53
				add_action( 'admin_menu', array( $this->settings, 'sharing_menu' ) );
54
			}
55
56
			if ( in_array( 'publicize', $active ) && ! in_array( 'sharedaddy', $active ) ) {
57
				// we have a sharing page but not the global options area
58
				add_action( 'pre_admin_screen_sharing', array( $this->settings, 'sharing_block' ), 20 );
59
				add_action( 'pre_admin_screen_sharing', array( $this->settings, 'updated_message' ), -10 );
60
			}
61
62
			if( ! in_array( 'sharedaddy', $active ) ) {
63
				add_action( 'admin_init', array( $this->settings, 'process_update_requests_if_sharedaddy_not_loaded' ) );