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