[wp-trac] [WordPress Trac] #9666: Pass object id in the various
formatting filters
WordPress Trac
wp-trac at lists.automattic.com
Tue Apr 28 10:31:45 GMT 2009
#9666: Pass object id in the various formatting filters
-------------------------------+--------------------------------------------
Reporter: Denis-de-Bernardy | Owner: anonymous
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: General | Version: 2.8
Severity: normal | Keywords: needs-patch 2nd-opinion
-------------------------------+--------------------------------------------
This is a consolidated ticket, in reference to #9319 and #5746.
Both were requests to pass either of $post or $post->ID as an argument to
the_title (both have patches for that).
The same idea could be applied to multitudes of other formatting hooks.
They're not always called in the loop, so determining the ID of the object
(post, link, category, tag, etc.) isn't always easy in the event that it
is useful.
Suggested enhancement:
each filter such as the_title, the_content, etc., but also the_permalink,
the_category_link, etc., possibly also the_category, etc., as well...
basically any hook that is formatting related and that affects an
individual object rather than a collection, should have the object's ID as
an argument for easy reference.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9666>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list