@@ 4062-4076 (lines=15) @@ | ||
4059 | wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' ); |
|
4060 | } |
|
4061 | break; |
|
4062 | case 'jetpack-manage-opt-out': |
|
4063 | ||
4064 | if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) { |
|
4065 | // Don't show the banner again |
|
4066 | ||
4067 | Jetpack_Options::update_option( 'dismissed_manage_banner', true ); |
|
4068 | // redirect back to the page that had the notice |
|
4069 | if ( wp_get_referer() ) { |
|
4070 | wp_safe_redirect( wp_get_referer() ); |
|
4071 | } else { |
|
4072 | // Take me to Jetpack |
|
4073 | wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
|
4074 | } |
|
4075 | } |
|
4076 | break; |
|
4077 | case 'jetpack-protect-multisite-opt-out': |
|
4078 | ||
4079 | if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
@@ 4077-4091 (lines=15) @@ | ||
4074 | } |
|
4075 | } |
|
4076 | break; |
|
4077 | case 'jetpack-protect-multisite-opt-out': |
|
4078 | ||
4079 | if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
4080 | // Don't show the banner again |
|
4081 | ||
4082 | update_site_option( 'jetpack_dismissed_protect_multisite_banner', true ); |
|
4083 | // redirect back to the page that had the notice |
|
4084 | if ( wp_get_referer() ) { |
|
4085 | wp_safe_redirect( wp_get_referer() ); |
|
4086 | } else { |
|
4087 | // Take me to Jetpack |
|
4088 | wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
|
4089 | } |
|
4090 | } |
|
4091 | break; |
|
4092 | case 'jetpack-manage-opt-in': |
|
4093 | if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) { |
|
4094 | // This makes sure that we are redirect to jetpack home so that we can see the Success Message. |