Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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