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