New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Copy Post: Fix content for non-standard post formats. #11295
Conversation
Caution: This PR has changes that must be merged to WordPress.com |
Thank you for the great PR description! When this PR is ready for review, please apply the Scheduled Jetpack release: March 5, 2019. |
This is the first step; the block editor will no longer modify content for post formats. However, the post format itself is still incorrectly set by the block editor to whatever the default is in |
kwight, Your synced wpcom patch D24037-code has been updated. |
kwight, Your synced wpcom patch D24037-code has been updated. |
kwight, Your synced wpcom patch D24037-code has been updated. |
believing the post to be a new post (I guess it's not really wrong).
kwight, Your synced wpcom patch D24037-code has been updated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works well for me. I only have one small remark.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested manually and it worked as expected :)
kwight, Your synced wpcom patch D24037-code has been updated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking good. Merge when ready.
When the new post screen is loading, it believes it is loading a newly-created post with default content, and attempts to set the post format to the default selected in
Settings > Writing
. Since Copy Post has already taken care of assigning the proper post format, we can take advantage ofset_post_format
's shortcircuit to stop core from making any changes.Fixes #11256 .
Testing instructions:
Settings > Writing
.Proposed changelog entry for your changes: