[wp-trac] [WordPress Trac] #31603: Don't change $_SERVER['REQUEST_URI'] just to filter the current URL query string

WordPress Trac noreply at wordpress.org
Wed Mar 11 22:06:14 UTC 2015


#31603: Don't change $_SERVER['REQUEST_URI'] just to filter the current URL query
string
----------------------------+-----------------------------
 Reporter:  morganestes     |      Owner:
     Type:  enhancement     |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  General         |    Version:  trunk
 Severity:  normal          |   Keywords:
  Focuses:  administration  |
----------------------------+-----------------------------
 While working on #23367, I found 14 places in core that overwrite
 `$_SERVER['REQUEST_URI']`, which causes problems when trying to use it
 elsewhere and I don't know which version is going to make an appearance.

 I propose either switching from overwriting `$_SERVER['REQUEST_URI']` to
 using a local var when we need to, or creating a filter that's accessible
 everywhere if we need the modified value to use elsewhere.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31603>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list