[wp-trac] [WordPress Trac] #40566: add_query_arg() returns only URL fragments in certain circumstances

WordPress Trac noreply at wordpress.org
Tue Jul 28 05:35:12 UTC 2020


#40566: add_query_arg() returns only URL fragments in certain circumstances
---------------------------+-----------------------------
 Reporter:  DavidAnderson  |       Owner:  (none)
     Type:  enhancement    |      Status:  new
 Priority:  normal         |   Milestone:  Future Release
Component:  General        |     Version:
 Severity:  normal         |  Resolution:
 Keywords:  needs-patch    |     Focuses:  docs
---------------------------+-----------------------------
Changes (by markparnell):

 * keywords:   => needs-patch
 * focuses:   => docs
 * type:  defect (bug) => enhancement
 * milestone:  Awaiting Review => Future Release


Comment:

 Sounds like all that is required here is to update the docs for
 `add_query_arg()` (and possibly `remove_query_arg()`) to warn that if
 `$_SERVER['REQUEST_URI']` is a relative path then the returned value will
 be as well.

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


More information about the wp-trac mailing list