Use update and insert. Props DD32. fixes #6836

git-svn-id: https://develop.svn.wordpress.org/trunk@12652 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2010-01-07 20:13:54 +00:00
parent 7e6f603296
commit 7b580bf8e8
6 changed files with 17 additions and 21 deletions
+1 -1
View File
@@ -3787,7 +3787,7 @@ function wp_save_post_revision( $post_id ) {
// all revisions and (possibly) one autosave
$revisions = wp_get_post_revisions( $post_id, array( 'order' => 'ASC' ) );
// WP_POST_REVISIONS = (int) (# of autasaves to save)
// WP_POST_REVISIONS = (int) (# of autosaves to save)
$delete = count($revisions) - WP_POST_REVISIONS;
if ( $delete < 1 )