@@ 4129-4143 (lines=15) @@ | ||
4126 | wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' ); |
|
4127 | } |
|
4128 | break; |
|
4129 | case 'jetpack-manage-opt-out': |
|
4130 | ||
4131 | if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) { |
|
4132 | // Don't show the banner again |
|
4133 | ||
4134 | Jetpack_Options::update_option( 'dismissed_manage_banner', true ); |
|
4135 | // redirect back to the page that had the notice |
|
4136 | if ( wp_get_referer() ) { |
|
4137 | wp_safe_redirect( wp_get_referer() ); |
|
4138 | } else { |
|
4139 | // Take me to Jetpack |
|
4140 | wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
|
4141 | } |
|
4142 | } |
|
4143 | break; |
|
4144 | case 'jetpack-protect-multisite-opt-out': |
|
4145 | ||
4146 | if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
@@ 4144-4158 (lines=15) @@ | ||
4141 | } |
|
4142 | } |
|
4143 | break; |
|
4144 | case 'jetpack-protect-multisite-opt-out': |
|
4145 | ||
4146 | if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
4147 | // Don't show the banner again |
|
4148 | ||
4149 | update_site_option( 'jetpack_dismissed_protect_multisite_banner', true ); |
|
4150 | // redirect back to the page that had the notice |
|
4151 | if ( wp_get_referer() ) { |
|
4152 | wp_safe_redirect( wp_get_referer() ); |
|
4153 | } else { |
|
4154 | // Take me to Jetpack |
|
4155 | wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
|
4156 | } |
|
4157 | } |
|
4158 | break; |
|
4159 | case 'jetpack-manage-opt-in': |
|
4160 | if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) { |
|
4161 | // This makes sure that we are redirect to jetpack home so that we can see the Success Message. |