Opened 16 years ago
Closed 16 years ago
#12631 closed defect (bug) (fixed)
the_title filter gets inconsistent arguments
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | 3.0 | Priority: | normal |
| Severity: | normal | Version: | 3.0 |
| Component: | Template | Keywords: | has-patch the_title |
| Focuses: | Cc: |
Description
In get_the_title() it's passed the post ID, but in the other (mostly more recently introduced) uses of the filter, it gets a post object.
I think we should go with passing the ID since get_the_title() is most likely the use in which people would want the ID filter.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
See also: #4893 "Audit of all filter and action names." - Specifically mentions the_title