[wp-trac] [WordPress Trac] #29014: Normalization of template tag filters
WordPress Trac
noreply at wordpress.org
Thu Jul 24 04:42:15 UTC 2014
#29014: Normalization of template tag filters
-------------------------------+-----------------------------
Reporter: Funkatronic | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version: trunk
Severity: normal | Keywords:
Focuses: template |
-------------------------------+-----------------------------
The filters for the template tags, specifically, title, content and
excerpt, are not very uniform. Some of them have a filter for their
`get_the` variant, but not others. Only `the_title` sends the post id
through the filter while the others do not.
The included patch does the following:
- Add `get_the` filters to the proper functions for `get_the_title`,
`get_the_content`, `get_the_excerpt`
- Added post_type specific variants of the filters ( ex.
`the_title_{$post->post_type}`
- All filters now pass the post id as a second argument
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29014>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list