Skip to content

[Backport v25-branch] Populate install overrides on plugin activation#1438

Open
github-actions[bot] wants to merge 1 commit into
v25-branchfrom
backport-1421-to-v25-branch
Open

[Backport v25-branch] Populate install overrides on plugin activation#1438
github-actions[bot] wants to merge 1 commit into
v25-branchfrom
backport-1421-to-v25-branch

Conversation

@github-actions

Copy link
Copy Markdown

Description

Backport of #1421 to v25-branch.

Composer's EventDispatcher calls makeAutoloader() before invoking init
event listeners, building a package map via getInstallPath() on every
package. Previously the activate-time Override_Installer had empty
overrides, so every wordpress-plugin resolved to the root installer-paths
template (content/plugins/{name}/) and ClassMapGenerator emitted "Could
not scan for classes inside ..." warnings against those non-existent
paths. The init listener set the overrides correctly afterwards, but the
warnings had already fired.

Lift the lock-file-based override population into a helper and call it
from both activate() and init().

(cherry picked from commit 321ddd6)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants