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