[wp-trac] [WordPress Trac] #13382: _wp_post_revision_fields filter is not very useful
WordPress Trac
noreply at wordpress.org
Wed Feb 24 00:43:36 UTC 2016
#13382: _wp_post_revision_fields filter is not very useful
----------------------------------------+------------------------------
Reporter: mdawaffe | Owner: adamsilverstein
Type: enhancement | Status: closed
Priority: normal | Milestone: 4.5
Component: Revisions | Version: 3.0
Severity: normal | Resolution: fixed
Keywords: has-patch commit 4.5-early | Focuses:
----------------------------------------+------------------------------
Changes (by SergeyBiryukov):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"36659"]:
{{{
#!CommitTicketReference repository="" revision="36659"
Revisions: Clean up `_wp_post_revision_fields()`:
* Move the array processing to a new function, `_wp_post_revision_data()`.
* Make both functions accept a post array or a `WP_Post` object.
* Always apply the `_wp_post_revision_fields` filter and pass the post
data to it.
Fixes #13382.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/13382#comment:25>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list