|
@@ 4853-4867 (lines=15) @@
|
| 4850 |
|
wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' ); |
| 4851 |
|
} |
| 4852 |
|
break; |
| 4853 |
|
case 'jetpack-manage-opt-out': |
| 4854 |
|
|
| 4855 |
|
if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) { |
| 4856 |
|
// Don't show the banner again |
| 4857 |
|
|
| 4858 |
|
Jetpack_Options::update_option( 'dismissed_manage_banner', true ); |
| 4859 |
|
// redirect back to the page that had the notice |
| 4860 |
|
if ( wp_get_referer() ) { |
| 4861 |
|
wp_safe_redirect( wp_get_referer() ); |
| 4862 |
|
} else { |
| 4863 |
|
// Take me to Jetpack |
| 4864 |
|
wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
| 4865 |
|
} |
| 4866 |
|
} |
| 4867 |
|
break; |
| 4868 |
|
case 'jetpack-protect-multisite-opt-out': |
| 4869 |
|
|
| 4870 |
|
if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
@@ 4868-4882 (lines=15) @@
|
| 4865 |
|
} |
| 4866 |
|
} |
| 4867 |
|
break; |
| 4868 |
|
case 'jetpack-protect-multisite-opt-out': |
| 4869 |
|
|
| 4870 |
|
if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
| 4871 |
|
// Don't show the banner again |
| 4872 |
|
|
| 4873 |
|
update_site_option( 'jetpack_dismissed_protect_multisite_banner', true ); |
| 4874 |
|
// redirect back to the page that had the notice |
| 4875 |
|
if ( wp_get_referer() ) { |
| 4876 |
|
wp_safe_redirect( wp_get_referer() ); |
| 4877 |
|
} else { |
| 4878 |
|
// Take me to Jetpack |
| 4879 |
|
wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
| 4880 |
|
} |
| 4881 |
|
} |
| 4882 |
|
break; |
| 4883 |
|
case 'jetpack-manage-opt-in': |
| 4884 |
|
if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) { |
| 4885 |
|
// This makes sure that we are redirect to jetpack home so that we can see the Success Message. |