Blocks: Fix compatibility issues with WordPress 5.6/Gutenberg 9.5 #673
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I was testing Gutenberg 9.5 on wordcamp.org earlier today and found some date & api bugs.
getEntities
/getEntityRecords
, and now always return null. Seen in the editor, the schedule block never stops "loading" even though the requests finish.The fix for the first is straightforward, I don't think it has any unexpected side-effects. The second issue is "fixed" for now by removing
_fields
, in the interest of getting something working. I'll continue investigating the root issue, but this could be merged if we need a quick fix.How to test the changes in this Pull Request:
Update gutenberg to 9.5 (for the date issue). The API issue is visible on production currently (WP 5.6).