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