[wp-trac] [WordPress Trac] #22325: Abstract GPCS away from the superglobals

WordPress Trac noreply at wordpress.org
Tue Oct 6 01:48:47 UTC 2015


#22325: Abstract GPCS away from the superglobals
-----------------------------------+-----------------------------
 Reporter:  rmccue                 |       Owner:
     Type:  enhancement            |      Status:  new
 Priority:  normal                 |   Milestone:  Future Release
Component:  Bootstrap/Load         |     Version:
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch 2nd-opinion  |     Focuses:
-----------------------------------+-----------------------------

Comment (by dd32):

 > I started to worry that we can possibly be creating two sources of truth
 for the superglobals and would like to get other people's take on it.

 I worry about that too actually, and because of that my initial thought
 here would be to have these as aliases of the superglobals. How can it be
 an alias and also be unslashed?  My initial thought would be an object
 implementing ArrayAccess wrapping each super global.

 Just a thought.

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


More information about the wp-trac mailing list