Changeset 8011 for trunk/wp-admin/includes/post.php
- Timestamp:
- 05/29/2008 10:21:36 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/post.php
r7980 r8011 650 650 651 651 /** 652 * wp_create_ autosave() - creates autosave data for the specified post from $_POST data652 * wp_create_post_autosave() - creates autosave data for the specified post from $_POST data 653 653 * 654 654 * @package WordPress … … 657 657 * 658 658 * @uses _wp_translate_postdata() 659 * @uses _wp_ revision_fields()659 * @uses _wp_post_revision_fields() 660 660 */ 661 function wp_create_ autosave( $post_id ) {661 function wp_create_post_autosave( $post_id ) { 662 662 $translated = _wp_translate_postdata( true ); 663 663 if ( is_wp_error( $translated ) ) … … 665 665 666 666 // Only store one autosave. If there is already an autosave, overwrite it. 667 if ( $old_autosave = wp_get_ autosave( $post_id ) ) {668 $new_autosave = _wp_ revision_fields( $_POST, true );667 if ( $old_autosave = wp_get_post_autosave( $post_id ) ) { 668 $new_autosave = _wp_post_revision_fields( $_POST, true ); 669 669 $new_autosave['ID'] = $old_autosave->ID; 670 670 return wp_update_post( $new_autosave ); … … 672 672 673 673 // Otherwise create the new autosave as a special post revision 674 return _wp_put_ revision( $_POST, true );675 } 674 return _wp_put_post_revision( $_POST, true ); 675 }
Note: See TracChangeset
for help on using the changeset viewer.