Skip to content

Commit

Permalink
Autosave: Fix: Autosave may destroy save incorrect post title
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgefilipecosta committed Jul 13, 2018
1 parent 843ba97 commit 0202a14
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions editor/store/effects.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ import {
import {
getCurrentPost,
getCurrentPostType,
getEditedPostAttribute,
getEditedPostContent,
getPostEdits,
isEditedPostAutosaveable,
Expand Down Expand Up @@ -130,6 +131,7 @@ export default {
let toSend = {
...edits,
content: getEditedPostContent( state ),
title: getEditedPostAttribute( state, 'title' ),
id: post.id,
};
const basePath = wp.api.getPostTypeRoute( getCurrentPostType( state ) );
Expand Down

0 comments on commit 0202a14

Please sign in to comment.