Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4909-4923 (lines=15) @@
4906
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4907
				}
4908
				break;
4909
			case 'jetpack-manage-opt-out':
4910
4911
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4912
					// Don't show the banner again
4913
4914
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
4915
					// redirect back to the page that had the notice
4916
					if ( wp_get_referer() ) {
4917
						wp_safe_redirect( wp_get_referer() );
4918
					} else {
4919
						// Take me to Jetpack
4920
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4921
					}
4922
				}
4923
				break;
4924
			case 'jetpack-protect-multisite-opt-out':
4925
4926
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4924-4938 (lines=15) @@
4921
					}
4922
				}
4923
				break;
4924
			case 'jetpack-protect-multisite-opt-out':
4925
4926
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4927
					// Don't show the banner again
4928
4929
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4930
					// redirect back to the page that had the notice
4931
					if ( wp_get_referer() ) {
4932
						wp_safe_redirect( wp_get_referer() );
4933
					} else {
4934
						// Take me to Jetpack
4935
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4936
					}
4937
				}
4938
				break;
4939
			case 'jetpack-manage-opt-in':
4940
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4941
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.