Skip to content

Remove mu-plugin as package type - #242

Merged
thelovekesh merged 2 commits into
mainfrom
remove/mu-plugin
Jun 5, 2026
Merged

Remove mu-plugin as package type#242
thelovekesh merged 2 commits into
mainfrom
remove/mu-plugin

Conversation

@thelovekesh

Copy link
Copy Markdown
Collaborator

This PR removes mu-plugin as a supported package type for security reasons.

Since must-use plugins are loaded directly by WordPress, allowing downloaded packages to be installed as mu-plugin creates a risk that untrusted code could be executed automatically at runtime. The potential impact of that risk is significant enough that we should not support this workflow.

There is also a usability concern. WordPress only loads PHP files placed directly in the mu-plugins directory. It does not automatically load plugins stored in subdirectories, which can lead to confusion when a package is installed but never loaded. Supporting directory-based mu-plugin packages would require an additional custom loader.

Users who want to deploy a plugin as a must-use plugin can still do so by using lifecycle scripts to move or copy the plugin into the desired location after installation.

@thelovekesh thelovekesh added the core changes made in cli core api label Jun 5, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request removes support for the mu-plugin (must-use plugin) package type across the entire codebase, including CLI commands, installer logic, validation rules, JSON schema, and documentation. Only theme and plugin remain as valid package types. There are no review comments, and I have no additional feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@github-actions

github-actions Bot commented Jun 5, 2026

Copy link
Copy Markdown

📦 wpm cli builds 📦

@thelovekesh
thelovekesh merged commit 19bf523 into main Jun 5, 2026
17 checks passed
@thelovekesh
thelovekesh deleted the remove/mu-plugin branch June 5, 2026 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core changes made in cli core api

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant