Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

@@ 3948-3962 (lines=15) @@
3945
					wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' );
3946
				}
3947
				break;
3948
			case 'jetpack-manage-opt-out':
3949
3950
				if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) {
3951
					// Don't show the banner again
3952
3953
					Jetpack_Options::update_option( 'dismissed_manage_banner', true );
3954
					// redirect back to the page that had the notice
3955
					if ( wp_get_referer() ) {
3956
						wp_safe_redirect( wp_get_referer() );
3957
					} else {
3958
						// Take me to Jetpack
3959
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
3960
					}
3961
				}
3962
				break;
3963
			case 'jetpack-protect-multisite-opt-out':
3964
3965
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
@@ 3963-3977 (lines=15) @@
3960
					}
3961
				}
3962
				break;
3963
			case 'jetpack-protect-multisite-opt-out':
3964
3965
				if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) {
3966
					// Don't show the banner again
3967
3968
					update_site_option( 'jetpack_dismissed_protect_multisite_banner', true );
3969
					// redirect back to the page that had the notice
3970
					if ( wp_get_referer() ) {
3971
						wp_safe_redirect( wp_get_referer() );
3972
					} else {
3973
						// Take me to Jetpack
3974
						wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) );
3975
					}
3976
				}
3977
				break;
3978
			case 'jetpack-manage-opt-in':
3979
				if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) {
3980
					// This makes sure that we are redirect to jetpack home so that we can see the Success Message.