mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-04 06:37:06 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@36659 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -55,7 +55,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