Code Duplication    Length = 5-5 lines in 2 locations

modules/comment-likes.php 1 location

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

modules/likes.php 1 location

@@ 64-68 (lines=5) @@
61
				add_action( 'admin_menu', array( $this->settings, 'sharing_menu' ) );
62
			}
63
64
			if ( in_array( 'publicize', $active ) && ! in_array( 'sharedaddy', $active ) ) {
65
				// we have a sharing page but not the global options area
66
				add_action( 'pre_admin_screen_sharing', array( $this->settings, 'sharing_block' ), 20 );
67
				add_action( 'pre_admin_screen_sharing', array( $this->settings, 'updated_message' ), -10 );
68
			}
69
70
			if( ! in_array( 'sharedaddy', $active ) ) {
71
				add_action( 'admin_init', array( $this->settings, 'process_update_requests_if_sharedaddy_not_loaded' ) );