@@ 4786-4800 (lines=15) @@ | ||
4783 | wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' ); |
|
4784 | } |
|
4785 | break; |
|
4786 | case 'jetpack-manage-opt-out': |
|
4787 | ||
4788 | if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) { |
|
4789 | // Don't show the banner again |
|
4790 | ||
4791 | Jetpack_Options::update_option( 'dismissed_manage_banner', true ); |
|
4792 | // redirect back to the page that had the notice |
|
4793 | if ( wp_get_referer() ) { |
|
4794 | wp_safe_redirect( wp_get_referer() ); |
|
4795 | } else { |
|
4796 | // Take me to Jetpack |
|
4797 | wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
|
4798 | } |
|
4799 | } |
|
4800 | break; |
|
4801 | case 'jetpack-protect-multisite-opt-out': |
|
4802 | ||
4803 | if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
@@ 4801-4815 (lines=15) @@ | ||
4798 | } |
|
4799 | } |
|
4800 | break; |
|
4801 | case 'jetpack-protect-multisite-opt-out': |
|
4802 | ||
4803 | if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
4804 | // Don't show the banner again |
|
4805 | ||
4806 | update_site_option( 'jetpack_dismissed_protect_multisite_banner', true ); |
|
4807 | // redirect back to the page that had the notice |
|
4808 | if ( wp_get_referer() ) { |
|
4809 | wp_safe_redirect( wp_get_referer() ); |
|
4810 | } else { |
|
4811 | // Take me to Jetpack |
|
4812 | wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
|
4813 | } |
|
4814 | } |
|
4815 | break; |
|
4816 | case 'jetpack-manage-opt-in': |
|
4817 | if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) { |
|
4818 | // This makes sure that we are redirect to jetpack home so that we can see the Success Message. |