Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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