@@ 4147-4161 (lines=15) @@ | ||
4144 | wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' ); |
|
4145 | } |
|
4146 | break; |
|
4147 | case 'jetpack-manage-opt-out': |
|
4148 | ||
4149 | if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) { |
|
4150 | // Don't show the banner again |
|
4151 | ||
4152 | Jetpack_Options::update_option( 'dismissed_manage_banner', true ); |
|
4153 | // redirect back to the page that had the notice |
|
4154 | if ( wp_get_referer() ) { |
|
4155 | wp_safe_redirect( wp_get_referer() ); |
|
4156 | } else { |
|
4157 | // Take me to Jetpack |
|
4158 | wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
|
4159 | } |
|
4160 | } |
|
4161 | break; |
|
4162 | case 'jetpack-protect-multisite-opt-out': |
|
4163 | ||
4164 | if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
@@ 4162-4176 (lines=15) @@ | ||
4159 | } |
|
4160 | } |
|
4161 | break; |
|
4162 | case 'jetpack-protect-multisite-opt-out': |
|
4163 | ||
4164 | if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
4165 | // Don't show the banner again |
|
4166 | ||
4167 | update_site_option( 'jetpack_dismissed_protect_multisite_banner', true ); |
|
4168 | // redirect back to the page that had the notice |
|
4169 | if ( wp_get_referer() ) { |
|
4170 | wp_safe_redirect( wp_get_referer() ); |
|
4171 | } else { |
|
4172 | // Take me to Jetpack |
|
4173 | wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
|
4174 | } |
|
4175 | } |
|
4176 | break; |
|
4177 | case 'jetpack-manage-opt-in': |
|
4178 | if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) { |
|
4179 | // This makes sure that we are redirect to jetpack home so that we can see the Success Message. |