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