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