Changeset 36659 for trunk/src/wp-admin/includes/post.php
- Timestamp:
- 02/24/2016 12:43:31 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/post.php
r36584 r36659 1663 1663 // Store one autosave per author. If there is already an autosave, overwrite it. 1664 1664 if ( $old_autosave = wp_get_post_autosave( $post_id, $post_author ) ) { 1665 $new_autosave = _wp_post_revision_ fields( $post_data, true );1665 $new_autosave = _wp_post_revision_data( $post_data, true ); 1666 1666 $new_autosave['ID'] = $old_autosave->ID; 1667 1667 $new_autosave['post_author'] = $post_author; … … 1670 1670 $post = get_post( $post_id ); 1671 1671 $autosave_is_different = false; 1672 foreach ( array_intersect( array_keys( $new_autosave ), array_keys( _wp_post_revision_fields( ) ) ) as $field ) {1672 foreach ( array_intersect( array_keys( $new_autosave ), array_keys( _wp_post_revision_fields( $post ) ) ) as $field ) { 1673 1673 if ( normalize_whitespace( $new_autosave[ $field ] ) != normalize_whitespace( $post->$field ) ) { 1674 1674 $autosave_is_different = true;
Note: See TracChangeset
for help on using the changeset viewer.