Feature/gphwpp 4432 move jetpack and login to core - #920
peperuda-dev wants to merge 16 commits into
Conversation
There was a problem hiding this comment.
Pull request overview
This PR migrates the login branding/tracking and Jetpack backup coupon flow functionality from the ionos-essentials plugin into the ionos-core mu-plugin, while adding guards in ionos-essentials to avoid double-loading when ionos-core provides the same features.
Changes:
- Add
ionos-corelogin module (PHP enqueue + header branding, plus JS tracking + CSS styling) and an accompanying Playwright E2E test. - Add
ionos-coreJetpack flow module (admin flow + assets + README) and load it fromionos-core.php. - Add “already loaded” guards to
ionos-essentialslogin + Jetpack flow modules.
Reviewed changes
Copilot reviewed 10 out of 18 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/wp-plugin/ionos-essentials/ionos-essentials/inc/login/index.php | Adds guard to skip if core already loaded; adjusts tenant-logo URL generation. |
| packages/wp-plugin/ionos-essentials/ionos-essentials/inc/jetpack-flow/index.php | Adds guard to skip if core already loaded. |
| packages/wp-mu-plugin/ionos-core/ionos-core/src/login/index.js | New login JS to track SSO clicks via REST endpoint. |
| packages/wp-mu-plugin/ionos-core/ionos-core/src/login/index.css | New login CSS for header/logo styling. |
| packages/wp-mu-plugin/ionos-core/ionos-core/login/index.php | New login PHP to enqueue assets and inject branded header. |
| packages/wp-mu-plugin/ionos-core/ionos-core/login/tests/e2e/login.spec.js | New Playwright E2E test for login branding and console errors. |
| packages/wp-mu-plugin/ionos-core/ionos-core/login/assets/tenant-logos/*.svg | Adds tenant logo assets for login header branding. |
| packages/wp-mu-plugin/ionos-core/ionos-core/jetpack-flow/index.php | New Jetpack backup coupon flow implementation in core. |
| packages/wp-mu-plugin/ionos-core/ionos-core/jetpack-flow/assets/flow.css | New styling for the Jetpack flow admin UI. |
| packages/wp-mu-plugin/ionos-core/ionos-core/jetpack-flow/assets/jetpack-logo.svg | Adds Jetpack logo asset used by the flow UI. |
| packages/wp-mu-plugin/ionos-core/ionos-core/jetpack-flow/README.md | Adds developer documentation for the Jetpack flow. |
| packages/wp-mu-plugin/ionos-core/ionos-core.php | Defines core plugin constants, adds _is_plugin_active(), and loads jetpack-flow/login modules. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
…ttps://github.com/IONOS-WordPress/ionos-wordpress into feature/GPHWPP-4432-move-jetpack-and-login-to-core
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
| if (! function_exists('delete_plugins')) { | ||
| require_once ABSPATH . 'wp-admin/includes/plugin.php'; | ||
| } | ||
| \delete_plugins([ESSENTIALS_PLUGIN]); |
There was a problem hiding this comment.
this is definitely not the wanted behavior.
https://hosting-jira.1and1.org/browse/GPHWPP-4429 would be solved by deleting assistant, but please not essentials as it's supposed to work next to core
Description
Checklist
Screenshots / Recordings
If the ui was changed by PR please provide a screenshot
manual testing
Please replace this line with instructions on how to test your changes
Reviewer checklist