Skip to content

Commit 1cc1fc4

Browse files
committed
Password reset page now accessible when preventing access to the whole site.
1 parent a25f71d commit 1cc1fc4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

includes/actions.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,14 @@ function wpum_prevent_entire_site() {
398398
return;
399399
}
400400

401+
$password_reset_page_id = wpum_get_core_page_id( 'password' );
402+
if ( ! empty( $password_reset_page_id ) ) {
403+
$password_reset_page = get_permalink( $password_reset_page_id );
404+
if ( 0 === strpos( home_url( $_SERVER['REQUEST_URI'] ), $password_reset_page ) ) {
405+
return;
406+
}
407+
}
408+
401409
if ( wpum_get_option( 'lock_complete_site_allow_register' ) ) {
402410
$registration_pages = array();
403411
$registration_pages[] = get_permalink( wpum_get_core_page_id( 'register' ) );

0 commit comments

Comments
 (0)