Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
Merge pull request #285 from xwp/bugfix/create-post-from-panel
Browse files Browse the repository at this point in the history
Remaining straggler createPost() to startCreatePostFlow()
  • Loading branch information
westonruter authored Sep 20, 2016
2 parents 3384041 + a947eb0 commit d5df30b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/customize-posts-panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
onClickAddPostButton: function onClickAddPostButton( event ) {
var panel = this, button = $( event.target );
event.preventDefault();
api.Posts.createPost( {
api.Posts.startCreatePostFlow( {
postType: panel.postType,
initiatingButton: button,
restorePreviousUrl: false
Expand Down

0 comments on commit d5df30b

Please sign in to comment.