[wp-trac] [WordPress Trac] #19012: get_ID and the_ID should accept $id as a parameter
WordPress Trac
wp-trac at lists.automattic.com
Thu Oct 20 04:56:28 UTC 2011
#19012: get_ID and the_ID should accept $id as a parameter
-------------------------+-------------------------------------------------
Reporter: | Owner: peterchester
peterchester | Status: new
Type: enhancement | Milestone: Awaiting Review
Priority: normal | Version: 3.3
Component: Post Types | Keywords: has-patch needs-testing needs-codex
Severity: normal |
-------------------------+-------------------------------------------------
I see through out the wordpress code as well as through out many plugins
and themes that get_ID is often accompanied by a test to see if an ID had
been passed. It would be a harmless but extremely useful update to simply
allow get_ID and the_ID to accept an optional $id and pass it through if
it's numerical.
I've already gone ahead and created the patch (attached)
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19012>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list