Skip to content

Commit

Permalink
Troubleshooting mode: Explicitly set cookie as an empty string when d…
Browse files Browse the repository at this point in the history
…isabling troubleshooting mode.

Fixes #453.
  • Loading branch information
Clorith committed Aug 6, 2023
1 parent fe67280 commit 5d5ff22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mu-plugin/health-check-troubleshooting-mode.php
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ function health_check_troubleshooter_mode_logout() {

function disable_troubleshooting_mode() {
unset( $_COOKIE['wp-health-check-disable-plugins'] );
setcookie( 'wp-health-check-disable-plugins', null, 0, COOKIEPATH, COOKIE_DOMAIN );
setcookie( 'wp-health-check-disable-plugins', '', 0, COOKIEPATH, COOKIE_DOMAIN );
delete_option( 'health-check-allowed-plugins' );
delete_option( 'health-check-default-theme' );
delete_option( 'health-check-current-theme' );
Expand Down

0 comments on commit 5d5ff22

Please sign in to comment.