Opened 19 months ago
Last modified 19 months ago
#19012 reviewing enhancement
get_ID and the_ID should accept $id as a parameter — at Initial Version
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | Future Release |
| Component: | Post Types | Version: | 3.3 |
| Severity: | normal | Keywords: | needs-testing needs-codex has-patch |
| Cc: | markjaquith, peter@… |
Description
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)
Note: See
TracTickets for help on using
tickets.
