[wp-trac] [WordPress Trac] #57650: is_login() fails on non-standard WordPress installations.
WordPress Trac
noreply at wordpress.org
Tue Feb 7 09:11:54 UTC 2023
#57650: is_login() fails on non-standard WordPress installations.
------------------------------------+-----------------------------
Reporter: Levdbas | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Login and Registration | Version: 6.1.1
Severity: minor | Keywords:
Focuses: |
------------------------------------+-----------------------------
is_login() uses
{{{#!php
$_SERVER['SCRIPT_NAME']
}}}
as the needle in stripos() where this function relies upon. In non-
standard WordPress installations, for example Bedrock, where the root is
different the following would be checked:
haystack: https://domainname.org/wp/wp-login.php
Needle: web/wp/wp-login.php
And thus fail.
Would it be possible to update this function so these non-standard
installs will work as well? By example, maybe only check for wp-login.php
instead of the full path?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57650>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list