[wp-trac] [WordPress Trac] #34699: New function: `get_query_arg()`
WordPress Trac
noreply at wordpress.org
Fri Mar 10 15:25:16 UTC 2017
#34699: New function: `get_query_arg()`
-------------------------------------------------+-------------------------
Reporter: sebastian.pisula | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting
Component: General | Review
Severity: normal | Version:
Keywords: reporter-feedback has-patch needs- | Resolution:
unit-tests 2nd-opinion | Focuses:
-------------------------------------------------+-------------------------
Comment (by nevis2us):
I believe this function could be useful for core & plugin devs for the
reasons stated above by flixos90. I think it should match
`add_query_arg()` as close as possible. That is it should accept an array
of keys and return `FALSE` not `NULL` if a key isn't in the query. If
`$key` is an array and one of its keys is not available as query argument,
the result array should include the key with value `FALSE`. Again to match
`add_query_arg()` calling conventions. My 2p. Thank you.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34699#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list