A few minutes ago, I released Embed Privacy version 1.10.0 with a ton of new code. It has been completely restructured for a better maintainability. But also for cleaner looks (at least when it comes to the code base) and improved logic.

What started as a rough idea on how to restructure the plugin, mainly splitting a class larger than a thousand lines of code into smaller ones, quickly turned into a complete rethinking about how Embed Privacy works. Now in version 1.10.0, there is a clear path how embeds are processed, which makes it easier to understand, also for new developers.

The new version also starts the path towards version 2.0, which is planned as the version after the next feature version 1.11.0, which drops support for old code. However, if you rely on code from Embed Privacy and update it to the new structure of version 1.10.0, you’re well prepared for it on PHP side.

To make updating code as easy as possible, you can checkout the migration guide, which has an overview of all changes. The most changes are regarding the available embed providers, which are now an abstraction of the former WP_Post classes, as well as replacing content with an overlay, which should be even more simple for third-parties to use.

Even though I tested this new version for weeks, it’s impossible to find all possible problems for a complete backwards compatibility. So if you notice anything weird, please let me know. 🤗

Leave a Reply

Your email address will not be published. Required fields are marked *