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