[wp-trac] [WordPress Trac] #49085: add_query_arg does not use WP_HOME or WP_SITEURL

WordPress Trac noreply at wordpress.org
Tue Jan 12 05:59:51 UTC 2021


#49085: add_query_arg does not use WP_HOME or WP_SITEURL
--------------------------+----------------------
 Reporter:  lonevvolf     |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  General       |     Version:
 Severity:  normal        |  Resolution:  wontfix
 Keywords:                |     Focuses:
--------------------------+----------------------
Changes (by peterwilsoncc):

 * status:  new => closed
 * resolution:   => wontfix
 * milestone:  Awaiting Review =>


Comment:

 Hi @lonevvolf and welcome to Trac!

 Due to the variety of configurations available for sites served behind a
 reverse proxy, the usual recommendation is for site owners to mess with
 the `$_SERVER` values in the `wp-config.php` file.

 In `add_query_arg()` the default has been to assume the current URL for
 around 16 years, and determining that without system knowledge behind a
 reverse proxy is borderline impossible (is `/` served from `/cms/` on the
 proxy, etc).

 I'm going to close this off as `wontfix`, which is the term used on trac
 for tickets that won't have action taken on them.

 Thansk.

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


More information about the wp-trac mailing list