Skip to content
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

Compatibility layer: define constants earlier? #82

Open
rbackert opened this issue Feb 20, 2025 · 0 comments
Open

Compatibility layer: define constants earlier? #82

rbackert opened this issue Feb 20, 2025 · 0 comments
Labels
compatibility layer Issues that relate to the compatibility layer component of the mu-plugin

Comments

@rbackert
Copy link

Constants may need to be defined earlier than the plugins_loaded action. Incompatible plugins may define the constants the Pantheon Compatibility plugin is meant to fix during their plugin load, effectively overriding Pantheon's attempt to define the constant.

I observed this in a local lando environment with WP Rocket, which defines the constants noted in Pantheon's compatibility guide (WP_ROCKET_CONFIG_PATH, WP_ROCKET_CACHE_ROOT_PATH, etc.) during it's plugin load, before Pantheon Compatibility tries to define them during plugins_loaded.

@jazzsequence jazzsequence added the compatibility layer Issues that relate to the compatibility layer component of the mu-plugin label Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compatibility layer Issues that relate to the compatibility layer component of the mu-plugin
Projects
None yet
Development

No branches or pull requests

2 participants