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