mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
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:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user