mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-04 17:20:07 +00:00
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 git-svn-id: https://develop.svn.wordpress.org/trunk@34917 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -54,7 +54,7 @@ function wp_get_revision_ui_diff( $post, $compare_from, $compare_to ) {
|
||||
|
||||
$return = array();
|
||||
|
||||
foreach ( _wp_post_revision_fields() as $field => $name ) {
|
||||
foreach ( _wp_post_revision_fields( $post ) as $field => $name ) {
|
||||
/**
|
||||
* Contextually filter a post revision field.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user