|
@@ 4890-4904 (lines=15) @@
|
| 4887 |
|
wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' ); |
| 4888 |
|
} |
| 4889 |
|
break; |
| 4890 |
|
case 'jetpack-manage-opt-out': |
| 4891 |
|
|
| 4892 |
|
if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) { |
| 4893 |
|
// Don't show the banner again |
| 4894 |
|
|
| 4895 |
|
Jetpack_Options::update_option( 'dismissed_manage_banner', true ); |
| 4896 |
|
// redirect back to the page that had the notice |
| 4897 |
|
if ( wp_get_referer() ) { |
| 4898 |
|
wp_safe_redirect( wp_get_referer() ); |
| 4899 |
|
} else { |
| 4900 |
|
// Take me to Jetpack |
| 4901 |
|
wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
| 4902 |
|
} |
| 4903 |
|
} |
| 4904 |
|
break; |
| 4905 |
|
case 'jetpack-protect-multisite-opt-out': |
| 4906 |
|
|
| 4907 |
|
if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
@@ 4905-4919 (lines=15) @@
|
| 4902 |
|
} |
| 4903 |
|
} |
| 4904 |
|
break; |
| 4905 |
|
case 'jetpack-protect-multisite-opt-out': |
| 4906 |
|
|
| 4907 |
|
if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
| 4908 |
|
// Don't show the banner again |
| 4909 |
|
|
| 4910 |
|
update_site_option( 'jetpack_dismissed_protect_multisite_banner', true ); |
| 4911 |
|
// redirect back to the page that had the notice |
| 4912 |
|
if ( wp_get_referer() ) { |
| 4913 |
|
wp_safe_redirect( wp_get_referer() ); |
| 4914 |
|
} else { |
| 4915 |
|
// Take me to Jetpack |
| 4916 |
|
wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
| 4917 |
|
} |
| 4918 |
|
} |
| 4919 |
|
break; |
| 4920 |
|
case 'jetpack-manage-opt-in': |
| 4921 |
|
if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) { |
| 4922 |
|
// This makes sure that we are redirect to jetpack home so that we can see the Success Message. |