@@ 3958-3972 (lines=15) @@ | ||
3955 | wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' ); |
|
3956 | } |
|
3957 | break; |
|
3958 | case 'jetpack-manage-opt-out': |
|
3959 | ||
3960 | if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) { |
|
3961 | // Don't show the banner again |
|
3962 | ||
3963 | Jetpack_Options::update_option( 'dismissed_manage_banner', true ); |
|
3964 | // redirect back to the page that had the notice |
|
3965 | if ( wp_get_referer() ) { |
|
3966 | wp_safe_redirect( wp_get_referer() ); |
|
3967 | } else { |
|
3968 | // Take me to Jetpack |
|
3969 | wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
|
3970 | } |
|
3971 | } |
|
3972 | break; |
|
3973 | case 'jetpack-protect-multisite-opt-out': |
|
3974 | ||
3975 | if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
@@ 3973-3987 (lines=15) @@ | ||
3970 | } |
|
3971 | } |
|
3972 | break; |
|
3973 | case 'jetpack-protect-multisite-opt-out': |
|
3974 | ||
3975 | if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
3976 | // Don't show the banner again |
|
3977 | ||
3978 | update_site_option( 'jetpack_dismissed_protect_multisite_banner', true ); |
|
3979 | // redirect back to the page that had the notice |
|
3980 | if ( wp_get_referer() ) { |
|
3981 | wp_safe_redirect( wp_get_referer() ); |
|
3982 | } else { |
|
3983 | // Take me to Jetpack |
|
3984 | wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
|
3985 | } |
|
3986 | } |
|
3987 | break; |
|
3988 | case 'jetpack-manage-opt-in': |
|
3989 | if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) { |
|
3990 | // This makes sure that we are redirect to jetpack home so that we can see the Success Message. |