Skip to content

Commit

Permalink
Fix - Logout redirection to home page
Browse files Browse the repository at this point in the history
  • Loading branch information
MILAN88888 committed Oct 10, 2023
1 parent 64b1275 commit a43d2b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/functions-ur-template.php
Original file line number Diff line number Diff line change
Expand Up @@ -981,7 +981,7 @@ function ur_logout_url( $redirect = '' ) {
return wp_nonce_url( ur_get_endpoint_url( 'user-logout', '', $redirect ), 'user-logout' );
} else {
if ( '' === $redirect ) {
$redirect = home_url();
$redirect = ur_get_page_permalink( 'myaccount' );
}
return wp_logout_url( $redirect );
}
Expand Down

0 comments on commit a43d2b9

Please sign in to comment.