@@ 4925-4939 (lines=15) @@ | ||
4922 | wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' ); |
|
4923 | } |
|
4924 | break; |
|
4925 | case 'jetpack-manage-opt-out': |
|
4926 | ||
4927 | if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) { |
|
4928 | // Don't show the banner again |
|
4929 | ||
4930 | Jetpack_Options::update_option( 'dismissed_manage_banner', true ); |
|
4931 | // redirect back to the page that had the notice |
|
4932 | if ( wp_get_referer() ) { |
|
4933 | wp_safe_redirect( wp_get_referer() ); |
|
4934 | } else { |
|
4935 | // Take me to Jetpack |
|
4936 | wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
|
4937 | } |
|
4938 | } |
|
4939 | break; |
|
4940 | case 'jetpack-protect-multisite-opt-out': |
|
4941 | ||
4942 | if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
@@ 4940-4954 (lines=15) @@ | ||
4937 | } |
|
4938 | } |
|
4939 | break; |
|
4940 | case 'jetpack-protect-multisite-opt-out': |
|
4941 | ||
4942 | if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
4943 | // Don't show the banner again |
|
4944 | ||
4945 | update_site_option( 'jetpack_dismissed_protect_multisite_banner', true ); |
|
4946 | // redirect back to the page that had the notice |
|
4947 | if ( wp_get_referer() ) { |
|
4948 | wp_safe_redirect( wp_get_referer() ); |
|
4949 | } else { |
|
4950 | // Take me to Jetpack |
|
4951 | wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
|
4952 | } |
|
4953 | } |
|
4954 | break; |
|
4955 | case 'jetpack-manage-opt-in': |
|
4956 | if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) { |
|
4957 | // This makes sure that we are redirect to jetpack home so that we can see the Success Message. |