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