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