@@ 4042-4056 (lines=15) @@ | ||
4039 | wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' ); |
|
4040 | } |
|
4041 | break; |
|
4042 | case 'jetpack-manage-opt-out': |
|
4043 | ||
4044 | if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) { |
|
4045 | // Don't show the banner again |
|
4046 | ||
4047 | Jetpack_Options::update_option( 'dismissed_manage_banner', true ); |
|
4048 | // redirect back to the page that had the notice |
|
4049 | if ( wp_get_referer() ) { |
|
4050 | wp_safe_redirect( wp_get_referer() ); |
|
4051 | } else { |
|
4052 | // Take me to Jetpack |
|
4053 | wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
|
4054 | } |
|
4055 | } |
|
4056 | break; |
|
4057 | case 'jetpack-protect-multisite-opt-out': |
|
4058 | ||
4059 | if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
@@ 4057-4071 (lines=15) @@ | ||
4054 | } |
|
4055 | } |
|
4056 | break; |
|
4057 | case 'jetpack-protect-multisite-opt-out': |
|
4058 | ||
4059 | if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
4060 | // Don't show the banner again |
|
4061 | ||
4062 | update_site_option( 'jetpack_dismissed_protect_multisite_banner', true ); |
|
4063 | // redirect back to the page that had the notice |
|
4064 | if ( wp_get_referer() ) { |
|
4065 | wp_safe_redirect( wp_get_referer() ); |
|
4066 | } else { |
|
4067 | // Take me to Jetpack |
|
4068 | wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
|
4069 | } |
|
4070 | } |
|
4071 | break; |
|
4072 | case 'jetpack-manage-opt-in': |
|
4073 | if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) { |
|
4074 | // This makes sure that we are redirect to jetpack home so that we can see the Success Message. |