@@ 4257-4271 (lines=15) @@ | ||
4254 | wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' ); |
|
4255 | } |
|
4256 | break; |
|
4257 | case 'jetpack-manage-opt-out': |
|
4258 | ||
4259 | if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) { |
|
4260 | // Don't show the banner again |
|
4261 | ||
4262 | Jetpack_Options::update_option( 'dismissed_manage_banner', true ); |
|
4263 | // redirect back to the page that had the notice |
|
4264 | if ( wp_get_referer() ) { |
|
4265 | wp_safe_redirect( wp_get_referer() ); |
|
4266 | } else { |
|
4267 | // Take me to Jetpack |
|
4268 | wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
|
4269 | } |
|
4270 | } |
|
4271 | break; |
|
4272 | case 'jetpack-protect-multisite-opt-out': |
|
4273 | ||
4274 | if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
@@ 4272-4286 (lines=15) @@ | ||
4269 | } |
|
4270 | } |
|
4271 | break; |
|
4272 | case 'jetpack-protect-multisite-opt-out': |
|
4273 | ||
4274 | if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
4275 | // Don't show the banner again |
|
4276 | ||
4277 | update_site_option( 'jetpack_dismissed_protect_multisite_banner', true ); |
|
4278 | // redirect back to the page that had the notice |
|
4279 | if ( wp_get_referer() ) { |
|
4280 | wp_safe_redirect( wp_get_referer() ); |
|
4281 | } else { |
|
4282 | // Take me to Jetpack |
|
4283 | wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
|
4284 | } |
|
4285 | } |
|
4286 | break; |
|
4287 | case 'jetpack-manage-opt-in': |
|
4288 | if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) { |
|
4289 | // This makes sure that we are redirect to jetpack home so that we can see the Success Message. |