Skip to content

Commit b60ca13

Browse files
authored
Update plugins-known-issues.md
Merging "two solutions" into a single solution
1 parent 7505bd1 commit b60ca13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/content/plugins-known-issues.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ ___
628628

629629
**Issue 3:** Unable to reset WordPress password or register new WordPress users when "Hide Backend" feature is enabled due to `itsec-hb-token` parameter being stripped from URL redirections.
630630

631-
**Solution 1** Dynamically append the `itsec-hb-token` parameter to redirection URLs when it's present in the original request. Edit the `functions.php` file of your WordPress theme. If you're using a child theme, make the changes there to avoid overwriting during theme updates.
631+
**Solution:** Two adjustments are needed to fully resolve this issue. First, dynamically append the `itsec-hb-token` parameter to redirection URLs when the parameter present in the original request. Edit the `functions.php` file of your WordPress theme. If you're using a child theme, make the changes there to avoid overwriting during theme updates.
632632

633633
```php:title=functions.php
634634
add_filter('wp_redirect', 'retain_itsec_hb_token', 10, 2);
@@ -641,7 +641,7 @@ function retain_itsec_hb_token($location, $status) {
641641
}
642642
```
643643

644-
**Solution 2** Ensure the `itsec-hb-token` parameter is retained during redirection to the `wp-login.php?checkemail=confirm` page. Locate the `wp-config.php` file in the root directory of your WordPress installation. Add the following code snippet at the top of the file, replacing "LOGIN_LOCATION" with your defined login slug (such as `log-me`):
644+
Second, ensure the `itsec-hb-token` parameter is retained when during login redirection to the `wp-login.php?checkemail=confirm` page. Locate the `wp-config.php` file in the root directory of your WordPress installation. Add the following code snippet at the top of the file, replacing "LOGIN_LOCATION" with your defined login slug (such as `log-me`):
645645

646646
```php:title=wp-config.php
647647
if (($_SERVER['REQUEST_URI'] == '/wp-login.php?checkemail=confirm') && (php_sapi_name() != "cli")) {

0 commit comments

Comments
 (0)