[wp-trac] [WordPress Trac] #13382: _wp_post_revision_fields filter is not very useful

WordPress Trac noreply at wordpress.org
Wed Oct 7 21:52:20 UTC 2015


#13382: _wp_post_revision_fields filter is not very useful
-------------------------+--------------------------
 Reporter:  mdawaffe     |       Owner:  johnbillion
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  4.4
Component:  Revisions    |     Version:  3.0
 Severity:  normal       |  Resolution:  fixed
 Keywords:  has-patch    |     Focuses:
-------------------------+--------------------------
Changes (by johnbillion):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"34917"]:
 {{{
 #!CommitTicketReference repository="" revision="34917"
 Pass the `$post` parameter to the `_wp_post_revision_fields` filter. This
 provides more context to the filter, which allows for different fields to
 be displayed on the revisions screen depending on the post.

 The `_wp_post_revision_fields()` function now also accepts a `WP_Post`
 object (in addition to an array of post fields) to facilitate this change.

 Fixes #13382
 Props adamsilverstein
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/13382#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list