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