get_ID and the_ID should accept $id as a parameter — at Version 3
|Reported by:||peterchester||Owned by:||ryan|
|Component:||Posts, Post Types||Keywords:||needs-testing needs-codex has-patch|
Description (last modified by markjaquith)
I see throughout the WordPress code as well as throughout 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)