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