Code Duplication    Length = 15-15 lines in 2 locations

class.jetpack.php 2 locations

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