Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 3928-3942 (lines=15) @@
3925
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
3926
				}
3927
				break;
3928
			case 'jetpack-manage-opt-out':
3929
3930
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
3931
					// Don't show the banner again
3932
3933
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
3934
					// redirect back to the page that had the notice
3935
					if ( wp_get_referer() ) {
3936
						wp_safe_redirect( wp_get_referer() );
3937
					} else {
3938
						// Take me to Jetpack
3939
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
3940
					}
3941
				}
3942
				break;
3943
			case 'jetpack-protect-multisite-opt-out':
3944
3945
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 3943-3957 (lines=15) @@
3940
					}
3941
				}
3942
				break;
3943
			case 'jetpack-protect-multisite-opt-out':
3944
3945
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
3946
					// Don't show the banner again
3947
3948
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
3949
					// redirect back to the page that had the notice
3950
					if ( wp_get_referer() ) {
3951
						wp_safe_redirect( wp_get_referer() );
3952
					} else {
3953
						// Take me to Jetpack
3954
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
3955
					}
3956
				}
3957
				break;
3958
			case 'jetpack-manage-opt-in':
3959
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
3960
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.