Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 4928-4942 (lines=15) @@
4925
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
4926
				}
4927
				break;
4928
			case 'jetpack-manage-opt-out':
4929
4930
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
4931
					// Don't show the banner again
4932
4933
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
4934
					// redirect back to the page that had the notice
4935
					if ( wp_get_referer() ) {
4936
						wp_safe_redirect( wp_get_referer() );
4937
					} else {
4938
						// Take me to Jetpack
4939
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4940
					}
4941
				}
4942
				break;
4943
			case 'jetpack-protect-multisite-opt-out':
4944
4945
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 4943-4957 (lines=15) @@
4940
					}
4941
				}
4942
				break;
4943
			case 'jetpack-protect-multisite-opt-out':
4944
4945
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
4946
					// Don't show the banner again
4947
4948
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
4949
					// redirect back to the page that had the notice
4950
					if ( wp_get_referer() ) {
4951
						wp_safe_redirect( wp_get_referer() );
4952
					} else {
4953
						// Take me to Jetpack
4954
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
4955
					}
4956
				}
4957
				break;
4958
			case 'jetpack-manage-opt-in':
4959
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
4960
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.