mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-03 16:50:13 +00:00
Use one space, not two, after trailing punctuation. fixes #19537
git-svn-id: https://develop.svn.wordpress.org/trunk@19593 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1259,7 +1259,7 @@ function wp_create_post_autosave( $post_id ) {
|
||||
if ( is_wp_error( $translated ) )
|
||||
return $translated;
|
||||
|
||||
// Only store one autosave. If there is already an autosave, overwrite it.
|
||||
// Only store one autosave. If there is already an autosave, overwrite it.
|
||||
if ( $old_autosave = wp_get_post_autosave( $post_id ) ) {
|
||||
$new_autosave = _wp_post_revision_fields( $_POST, true );
|
||||
$new_autosave['ID'] = $old_autosave->ID;
|
||||
@@ -1320,7 +1320,7 @@ function post_preview() {
|
||||
|
||||
if ( 'draft' == $post->post_status ) {
|
||||
$id = edit_post();
|
||||
} else { // Non drafts are not overwritten. The autosave is stored in a special post revision.
|
||||
} else { // Non drafts are not overwritten. The autosave is stored in a special post revision.
|
||||
$id = wp_create_post_autosave( $post->ID );
|
||||
if ( ! is_wp_error($id) )
|
||||
$id = $post->ID;
|
||||
|
||||
Reference in New Issue
Block a user