Closed vaurdan closed 1 month ago
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Description
As reported in #2667, on WordPress >= 6.6, the plugin is generating a few deprecation warnings. This is due to an unification of the extensibility APIs in 6.6, where some of the components we use are being moved from
@wordpress/edit-post
to@wordpress/editor
.The
@wordpress/editor
type definition from@types/wordpress__editor
still does not account for these changes, so it required some creativity to workaround this warning. Although, in the near future it will updated, as there's already a PR open on that repository to implement these new changes.However, the solution I came up for this - a wrapper for the components - might still be necessary even after that PR is merged, since I'm not sure that the components that have been moved to
@wordpress/editor
will work on WordPress older than 6.6.Motivation and context
How has this been tested?
Tested locally in three different WordPress versions (6.6, 6.5, and 6.4), and validated that the fallback code works on older WP versions, and the new code works on 6.6.
Summary by CodeRabbit
Summary by CodeRabbit
New Features
Improvements
Bug Fixes