@@ 3842-3856 (lines=15) @@ | ||
3839 | wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' ); |
|
3840 | } |
|
3841 | break; |
|
3842 | case 'jetpack-manage-opt-out': |
|
3843 | ||
3844 | if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) { |
|
3845 | // Don't show the banner again |
|
3846 | ||
3847 | Jetpack_Options::update_option( 'dismissed_manage_banner', true ); |
|
3848 | // redirect back to the page that had the notice |
|
3849 | if ( wp_get_referer() ) { |
|
3850 | wp_safe_redirect( wp_get_referer() ); |
|
3851 | } else { |
|
3852 | // Take me to Jetpack |
|
3853 | wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
|
3854 | } |
|
3855 | } |
|
3856 | break; |
|
3857 | case 'jetpack-protect-multisite-opt-out': |
|
3858 | ||
3859 | if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
@@ 3857-3871 (lines=15) @@ | ||
3854 | } |
|
3855 | } |
|
3856 | break; |
|
3857 | case 'jetpack-protect-multisite-opt-out': |
|
3858 | ||
3859 | if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
3860 | // Don't show the banner again |
|
3861 | ||
3862 | update_site_option( 'jetpack_dismissed_protect_multisite_banner', true ); |
|
3863 | // redirect back to the page that had the notice |
|
3864 | if ( wp_get_referer() ) { |
|
3865 | wp_safe_redirect( wp_get_referer() ); |
|
3866 | } else { |
|
3867 | // Take me to Jetpack |
|
3868 | wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
|
3869 | } |
|
3870 | } |
|
3871 | break; |
|
3872 | case 'jetpack-manage-opt-in': |
|
3873 | if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) { |
|
3874 | // This makes sure that we are redirect to jetpack home so that we can see the Success Message. |