Skip to content
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

Fix: Crash when updating a post with the latest post block #20289



Copy link

jorgefilipecosta commented Feb 18, 2020


This PR fixes an issue where the latest post block crashed during a post update.

With this change we don't have a crash in the block.

How has this been tested?

I created a new post with the title "Post title" and added the latest posts block to it.
I published the post and reloaded it in the editor.
I updated the post title and saved the post (I verified the latest post block did not crash, on master it crashes).

@jorgefilipecosta jorgefilipecosta added this to Needs Review in WordPress 5.4 Must Have Feb 18, 2020
@jorgefilipecosta jorgefilipecosta merged commit c65d876 into master Feb 21, 2020
3 checks passed
3 checks passed
Travis CI - Pull Request Build Passed
WordPress 5.4 Must Have automation moved this from Needs Review to Done Feb 21, 2020
@jorgefilipecosta jorgefilipecosta deleted the fix/crash-when-updating-a-post-with-latest-post-block branch Feb 21, 2020
@github-actions github-actions bot added this to the Gutenberg 7.6 milestone Feb 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked issues

Successfully merging this pull request may close these issues.

None yet

1 participant
You can’t perform that action at this time.