@@ 3930-3944 (lines=15) @@ | ||
3927 | wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' ); |
|
3928 | } |
|
3929 | break; |
|
3930 | case 'jetpack-manage-opt-out': |
|
3931 | ||
3932 | if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) { |
|
3933 | // Don't show the banner again |
|
3934 | ||
3935 | Jetpack_Options::update_option( 'dismissed_manage_banner', true ); |
|
3936 | // redirect back to the page that had the notice |
|
3937 | if ( wp_get_referer() ) { |
|
3938 | wp_safe_redirect( wp_get_referer() ); |
|
3939 | } else { |
|
3940 | // Take me to Jetpack |
|
3941 | wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
|
3942 | } |
|
3943 | } |
|
3944 | break; |
|
3945 | case 'jetpack-protect-multisite-opt-out': |
|
3946 | ||
3947 | if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
@@ 3945-3959 (lines=15) @@ | ||
3942 | } |
|
3943 | } |
|
3944 | break; |
|
3945 | case 'jetpack-protect-multisite-opt-out': |
|
3946 | ||
3947 | if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
3948 | // Don't show the banner again |
|
3949 | ||
3950 | update_site_option( 'jetpack_dismissed_protect_multisite_banner', true ); |
|
3951 | // redirect back to the page that had the notice |
|
3952 | if ( wp_get_referer() ) { |
|
3953 | wp_safe_redirect( wp_get_referer() ); |
|
3954 | } else { |
|
3955 | // Take me to Jetpack |
|
3956 | wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
|
3957 | } |
|
3958 | } |
|
3959 | break; |
|
3960 | case 'jetpack-manage-opt-in': |
|
3961 | if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) { |
|
3962 | // This makes sure that we are redirect to jetpack home so that we can see the Success Message. |