- updated hookdocs;

- reviewed `um_safe_redirect()`;
- updated readme.txt
This commit is contained in:
Mykyta Synelnikov
2023-07-18 12:06:17 +03:00
parent 6231c5cb78
commit ce4cf8fe7b
14 changed files with 182 additions and 117 deletions
+1 -1
View File
@@ -239,7 +239,7 @@ if ( ! class_exists( 'um\core\Password' ) ) {
if ( isset( $_GET['hash'] ) && isset( $_GET['login'] ) ) {
$value = sprintf( '%s:%s', wp_unslash( $_GET['login'] ), wp_unslash( $_GET['hash'] ) );
$this->setcookie( $rp_cookie, $value );
// Not `um_safe_redirect()` because password-reset page is predefined page and is situated on the same host.
wp_safe_redirect( remove_query_arg( array( 'hash', 'login' ) ) );
exit;
}