get_ID and the_ID should accept $id as a parameter — at Initial Version
|Reported by:||peterchester||Owned by:||peterchester|
|Component:||Posts, Post Types||Keywords:||needs-testing needs-codex has-patch|
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)