-
Notifications
You must be signed in to change notification settings - Fork 385
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
Move WPCOM and Jetpack-specific codebase into the Jetpack plugin #1021
Comments
Hey @westonruter , I've taken a crack at writing a story and some ACs out of this. Let me know if I'm missing anything. As a WordPress user, I should expect each plugin to contain AMP-specific code in its own codebase, not in the main AMP-WP plugin.
I've taken the liberty of adding AC4, let me know if you think it's necessary. |
I wouldn't class this under the same umbrella as Jetpack, because it's specific to the WordPress.com VIP environment. We also have vipgo-helper.php files for VIP Go. We (VIP) do need a better way of inserting our environment-specific modification than including in plugins although the solution we end up with will likely only get applied to VIP Go. Regardless, it's not something that really belongs in Jetpack either. For now, with plugins like Liveblog, we version control the helpers in Github and then exclude from the WordPress.org releases. |
It is important to do this to decouple the plugin from any dependencies. If the code is not moved to Jetpack, what would the plan be? |
It sounds like the code should be incorporated into WordPress.com's platform codebase and not made part of any plugin then. |
I moved some wpcom-helper features to Jetpack in Automattic/jetpack#9458. AMP plugin side is #1149 |
The Jetpack side is merged, so I'm just waiting on someone to review #1149 against the Jetpack master branch (6.2) |
Yup, it looks safe now! |
@jeherve Just to be clear: all of the code in |
@jeherve and @westonruter - the wpcom helper is no longer used on wpcom as far as I can tell. It's not required anywhere. |
As we work to add AMP support to the WordPress ecosystem it is not feasible for the AMP plugin itself to support all of the plugins. Instead, the plugins themselves should be supporting AMP. So the current Jetpack-specific code should be moved into the AMP plugin. The new Lazy Images feature of Jetpack actually was built with AMP-support baked in.
Code in scope for moving to Jetpack:
/jetpack-helper.php
/wpcom
/wpcom-helper.php
The text was updated successfully, but these errors were encountered: