[wp-trac] [WordPress Trac] #19932: Pass post ID to post revision field filter
WordPress Trac
wp-trac at lists.automattic.com
Mon Jan 30 19:23:52 UTC 2012
#19932: Pass post ID to post revision field filter
-------------------------+-----------------------------
Reporter: pollett | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Revisions | Version:
Severity: minor | Keywords: has-patch
-------------------------+-----------------------------
When viewing a post revision, for each field the filter
{{{
_wp_post_revision_field_xx
}}}
is called. This is passed the field name and value as parameters but not
the post ID that it's working with, this allows you to modify the value
based on it's currently contents but not based on the post ID i.e. to
inject new fields into the diff.
Proposal that the post ID also be passed to this filter rather than having
to hack around it by making $left and $right global.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19932>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list