@@ 4870-4884 (lines=15) @@ | ||
4867 | wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' ); |
|
4868 | } |
|
4869 | break; |
|
4870 | case 'jetpack-manage-opt-out': |
|
4871 | ||
4872 | if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) { |
|
4873 | // Don't show the banner again |
|
4874 | ||
4875 | Jetpack_Options::update_option( 'dismissed_manage_banner', true ); |
|
4876 | // redirect back to the page that had the notice |
|
4877 | if ( wp_get_referer() ) { |
|
4878 | wp_safe_redirect( wp_get_referer() ); |
|
4879 | } else { |
|
4880 | // Take me to Jetpack |
|
4881 | wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
|
4882 | } |
|
4883 | } |
|
4884 | break; |
|
4885 | case 'jetpack-protect-multisite-opt-out': |
|
4886 | ||
4887 | if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
@@ 4885-4899 (lines=15) @@ | ||
4882 | } |
|
4883 | } |
|
4884 | break; |
|
4885 | case 'jetpack-protect-multisite-opt-out': |
|
4886 | ||
4887 | if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
4888 | // Don't show the banner again |
|
4889 | ||
4890 | update_site_option( 'jetpack_dismissed_protect_multisite_banner', true ); |
|
4891 | // redirect back to the page that had the notice |
|
4892 | if ( wp_get_referer() ) { |
|
4893 | wp_safe_redirect( wp_get_referer() ); |
|
4894 | } else { |
|
4895 | // Take me to Jetpack |
|
4896 | wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
|
4897 | } |
|
4898 | } |
|
4899 | break; |
|
4900 | case 'jetpack-manage-opt-in': |
|
4901 | if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) { |
|
4902 | // This makes sure that we are redirect to jetpack home so that we can see the Success Message. |