|
@@ 3814-3828 (lines=15) @@
|
| 3811 |
|
wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' ); |
| 3812 |
|
} |
| 3813 |
|
break; |
| 3814 |
|
case 'jetpack-manage-opt-out': |
| 3815 |
|
|
| 3816 |
|
if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) { |
| 3817 |
|
// Don't show the banner again |
| 3818 |
|
|
| 3819 |
|
Jetpack_Options::update_option( 'dismissed_manage_banner', true ); |
| 3820 |
|
// redirect back to the page that had the notice |
| 3821 |
|
if ( wp_get_referer() ) { |
| 3822 |
|
wp_safe_redirect( wp_get_referer() ); |
| 3823 |
|
} else { |
| 3824 |
|
// Take me to Jetpack |
| 3825 |
|
wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
| 3826 |
|
} |
| 3827 |
|
} |
| 3828 |
|
break; |
| 3829 |
|
case 'jetpack-protect-multisite-opt-out': |
| 3830 |
|
|
| 3831 |
|
if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
@@ 3829-3843 (lines=15) @@
|
| 3826 |
|
} |
| 3827 |
|
} |
| 3828 |
|
break; |
| 3829 |
|
case 'jetpack-protect-multisite-opt-out': |
| 3830 |
|
|
| 3831 |
|
if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
| 3832 |
|
// Don't show the banner again |
| 3833 |
|
|
| 3834 |
|
update_site_option( 'jetpack_dismissed_protect_multisite_banner', true ); |
| 3835 |
|
// redirect back to the page that had the notice |
| 3836 |
|
if ( wp_get_referer() ) { |
| 3837 |
|
wp_safe_redirect( wp_get_referer() ); |
| 3838 |
|
} else { |
| 3839 |
|
// Take me to Jetpack |
| 3840 |
|
wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
| 3841 |
|
} |
| 3842 |
|
} |
| 3843 |
|
break; |
| 3844 |
|
case 'jetpack-manage-opt-in': |
| 3845 |
|
if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) { |
| 3846 |
|
// This makes sure that we are redirect to jetpack home so that we can see the Success Message. |