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.
Built from https://develop.svn.wordpress.org/trunk@36659


git-svn-id: http://core.svn.wordpress.org/trunk@36626 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov
2016-02-24 00:44:59 +00:00
parent f9a4120299
commit ab0eb71d21
5 changed files with 75 additions and 48 deletions

View File

@@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.5-alpha-36658';
$wp_version = '4.5-alpha-36659';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.