Changeset 24025
- Timestamp:
- 04/18/2013 04:43:59 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/revision.php
r24021 r24025 628 628 629 629 reset( $revisions ); 630 $add_last = true; 630 631 631 632 do { … … 639 640 continue; 640 641 641 // 1 is the latest revision version, so we're already up to date 642 if ( 0 < $this_revision_version ) 642 // 1 is the latest revision version, so we're already up to date. 643 // No need to add a copy of the post as latest revision. 644 if ( 0 < $this_revision_version ) { 645 $add_last = false; 643 646 continue; 647 } 644 648 645 649 // Always update the revision version … … 670 674 671 675 // Add a copy of the post as latest revision. 672 wp_save_post_revision( $post->ID ); 676 if ( $add_last ) 677 wp_save_post_revision( $post->ID ); 678 673 679 return true; 674 680 }
Note: See TracChangeset
for help on using the changeset viewer.