[wp-trac] [WordPress Trac] #57650: is_login() fails on non-standard WordPress installations.

WordPress Trac noreply at wordpress.org
Tue Feb 7 19:05:10 UTC 2023


#57650: is_login() fails on non-standard WordPress installations.
------------------------------------+------------------------------
 Reporter:  Levdbas                 |       Owner:  (none)
     Type:  defect (bug)            |      Status:  closed
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  Login and Registration  |     Version:  6.1.1
 Severity:  minor                   |  Resolution:  wontfix
 Keywords:                          |     Focuses:
------------------------------------+------------------------------
Changes (by Levdbas):

 * status:  new => closed
 * resolution:   => wontfix


Comment:

 Hi Ian,

 I did some more digging and it is more specific then I thought. I only
 experience this issue when using a custom .htaccess snippet on Directadmin
 (Apache) servers.

 {{{
 RewriteEngine on
 RewriteCond %{HTTP_HOST} ^example.com$ [NC,OR]
 RewriteCond %{HTTP_HOST} ^www.example.com$
 RewriteCond %{REQUEST_URI} !web/
 RewriteRule (.*) /web/$1 [L]

 }}}


 This results in /web/ being added to
 {{{
 $_SERVER['SCRIPT_NAME']
 }}}
 and thus breaking the logic.

 Domains with proper webroot settings or sites running on Nginx servers
 is_login() working as intended, even with Bedrock/custom root.

 So I think my reported issue is a bit too specific for core. Next time I
 will do some more research before opening a ticket.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57650#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list