Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4869-4883 (lines=15) @@
4866
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4867
				}
4868
				break;
4869
			case 'jetpack-manage-opt-out':
4870
4871
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4872
					// Don't show the banner again
4873
4874
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
4875
					// redirect back to the page that had the notice
4876
					if ( wp_get_referer() ) {
4877
						wp_safe_redirect( wp_get_referer() );
4878
					} else {
4879
						// Take me to Jetpack
4880
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4881
					}
4882
				}
4883
				break;
4884
			case 'jetpack-protect-multisite-opt-out':
4885
4886
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4884-4898 (lines=15) @@
4881
					}
4882
				}
4883
				break;
4884
			case 'jetpack-protect-multisite-opt-out':
4885
4886
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4887
					// Don't show the banner again
4888
4889
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4890
					// redirect back to the page that had the notice
4891
					if ( wp_get_referer() ) {
4892
						wp_safe_redirect( wp_get_referer() );
4893
					} else {
4894
						// Take me to Jetpack
4895
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4896
					}
4897
				}
4898
				break;
4899
			case 'jetpack-manage-opt-in':
4900
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4901
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.