Ensure compatibility with WordPress 5.9 #64
Merged
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.
Description of the Change
There was a reported issue with WP 5.9 where the Fix button was not working. This PR fixes this by updating the
wp.data
method we use to update the editor's content when using the block editor, as this method wasn't working in 5.9 anymore.Also noticed a console error due to a missing
key
in our insecure asset list we output so fixed that as well.We say we support down to WP 5.2 but in testing, things don't work on WP 5.2 but do work on WP 5.3+ (there is a minor styling issue with the Fix button in 5.3 and some console errors in 5.8 but everything seems to work).
Closes #63
Alternate Designs
None
Possible Drawbacks
None
Verification Process
Follow the steps listed on #63
Checklist:
Changelog Entry
Credits
Props @dkotter, @mohitwp