Make WordPress Core

Opened 4 years ago

Last modified 3 months ago

#19012 closed enhancement

get_ID and the_ID should accept $id as a parameter — at Initial Version

Reported by: peterchester Owned by: peterchester
Milestone: Priority: normal
Severity: normal Version: 3.3
Component: Posts, Post Types Keywords: needs-testing needs-codex has-patch
Focuses: Cc:


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)

Change History (0)

Note: See TracTickets for help on using tickets.