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