[wp-trac] [WordPress Trac] #22325: Abstract GPCS away from the superglobals
WordPress Trac
noreply at wordpress.org
Fri Nov 2 18:04:58 UTC 2012
#22325: Abstract GPCS away from the superglobals
-------------------------+-----------------------------
Reporter: rmccue | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: General | Version:
Severity: minor | Resolution:
Keywords: |
-------------------------+-----------------------------
Comment (by MikeSchinkel):
Replying to [comment:13 CaptainN]:
> A comment on that implementation though - I'd prefer lower case function
names (_get, _post, _request) to uppercase, because I think if these are
lower case, it'll be less likely to be confused with the real superglobals
at a glance.
The reason I like uppercase is because I think `_get()`, `_post()`,
`_request()` would too easily get lost in other code and it would be
harder for developers ''(like me)'' to see them while scanning. But it
all depends on what the decision makers think I guess, and I'm not one. :)
> Maybe this is less of an issue, but I'd also like to see little else
other than a wrapper around the actual superglobals. In other words, it
should behave pretty much exactly as the PHP standard on which it's based.
What do you propose for accessing not existent elements; throwing an
error? Personally I would hate to loose the opportunity to finally have a
standard way to cleanly get a default value.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22325#comment:14>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list