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