[wp-trac] [WordPress Trac] #48148: Wrong redirect link after logout (wordpress version 5.2.3)
WordPress Trac
noreply at wordpress.org
Thu Sep 26 12:32:52 UTC 2019
#48148: Wrong redirect link after logout (wordpress version 5.2.3)
------------------------------------+-----------------------------
Reporter: cmagrin | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Login and Registration | Version: 5.2.3
Severity: minor | Resolution: duplicate
Keywords: | Focuses: administration
------------------------------------+-----------------------------
Changes (by SergeyBiryukov):
* keywords: needs-patch =>
* milestone: Awaiting Review =>
Old description:
> Bug logout redirect (wordpress version 5.2.3)
> Cause: There is no "/" before "wp-login.php?..." and the user is
> redirected to "http://wp-login.php/?loggedout=true"
> (row 546 wp-login.php)
>
> if ( ! empty( $_REQUEST['redirect_to'] ) ) {
> $redirect_to = $requested_redirect_to =
> $_REQUEST['redirect_to'];
> } else {
> $redirect_to = 'wp-
> login.php?loggedout=true';
> $requested_redirect_to = '';
> }
New description:
Bug logout redirect (wordpress version 5.2.3)
Cause: There is no "/" before "wp-login.php?..." and the user is
redirected to "http://wp-login.php/?loggedout=true"
(row 546 wp-login.php)
{{{
if ( ! empty( $_REQUEST['redirect_to'] ) ) {
$redirect_to = $requested_redirect_to =
$_REQUEST['redirect_to'];
} else {
$redirect_to = 'wp-
login.php?loggedout=true';
$requested_redirect_to = '';
}
}}}
--
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48148#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list