@@ 4103-4117 (lines=15) @@ | ||
4100 | wp_safe_redirect( admin_url() . 'plugins.php?deactivate=true&plugin_status=all&paged=1&s=' ); |
|
4101 | } |
|
4102 | break; |
|
4103 | case 'jetpack-manage-opt-out': |
|
4104 | ||
4105 | if ( check_admin_referer( 'jetpack_manage_banner_opt_out' ) ) { |
|
4106 | // Don't show the banner again |
|
4107 | ||
4108 | Jetpack_Options::update_option( 'dismissed_manage_banner', true ); |
|
4109 | // redirect back to the page that had the notice |
|
4110 | if ( wp_get_referer() ) { |
|
4111 | wp_safe_redirect( wp_get_referer() ); |
|
4112 | } else { |
|
4113 | // Take me to Jetpack |
|
4114 | wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
|
4115 | } |
|
4116 | } |
|
4117 | break; |
|
4118 | case 'jetpack-protect-multisite-opt-out': |
|
4119 | ||
4120 | if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
@@ 4118-4132 (lines=15) @@ | ||
4115 | } |
|
4116 | } |
|
4117 | break; |
|
4118 | case 'jetpack-protect-multisite-opt-out': |
|
4119 | ||
4120 | if ( check_admin_referer( 'jetpack_protect_multisite_banner_opt_out' ) ) { |
|
4121 | // Don't show the banner again |
|
4122 | ||
4123 | update_site_option( 'jetpack_dismissed_protect_multisite_banner', true ); |
|
4124 | // redirect back to the page that had the notice |
|
4125 | if ( wp_get_referer() ) { |
|
4126 | wp_safe_redirect( wp_get_referer() ); |
|
4127 | } else { |
|
4128 | // Take me to Jetpack |
|
4129 | wp_safe_redirect( admin_url( 'admin.php?page=jetpack' ) ); |
|
4130 | } |
|
4131 | } |
|
4132 | break; |
|
4133 | case 'jetpack-manage-opt-in': |
|
4134 | if ( check_admin_referer( 'jetpack_manage_banner_opt_in' ) ) { |
|
4135 | // This makes sure that we are redirect to jetpack home so that we can see the Success Message. |