mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-30 23:30:05 +00:00
Revisions: don't set revisions post_author with get_post_meta( $ID, '_edit_last' ). Not needed since we create revisions after saving the post and breaks per-user autosaves, see #16215
git-svn-id: https://develop.svn.wordpress.org/trunk@23933 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -55,7 +55,6 @@ function _wp_post_revision_fields( $post = null, $autosave = false ) {
|
||||
$return['post_name'] = $autosave ? "$post[ID]-autosave-v1" : "$post[ID]-revision-v1"; // "1" is the revisioning system version
|
||||
$return['post_date'] = isset($post['post_modified']) ? $post['post_modified'] : '';
|
||||
$return['post_date_gmt'] = isset($post['post_modified_gmt']) ? $post['post_modified_gmt'] : '';
|
||||
$return['post_author'] = get_post_meta( $post['ID'], '_edit_last', true );
|
||||
|
||||
return $return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user