-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Connectors: plugin.file does not account for mu-plugins. #76984
Copy link
Copy link
Open
Labels
Connectors screenTracks connectors screen related tasksTracks connectors screen related tasks[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
Description
The connectors screen uses plugin.file to determine whether a Core connector should be displayed for an installed but inactive plugin. For plugins installed as mu-plugins, this can result in the connector not being displayed when the plugin is in use.
Connector registration should account for plugins activated via mu-plugins.
Follow up to #76909.
Step-by-step reproduction instructions
Note
I've created a PR to remove the Akismet connector for both the GB and wp-dev repos. If these have been merged you will need to use the commits below
- Install WordPress trunk, I used WordPress/WordPress@67fe063
- Install, build and activate Gutenberg. I used 309dfc2
- Ensure the Akismet plugin is installed in the plugins directory but not activated
- Visit Settings > Connectors
- Observe Akismet is shown as an option
- Move the
plugins/akismetfolder tomu-plugins/akismet - Add the one line file
mu-plugins/a.phpwith the contentrequire_once __DIR__ . '/akismet/akismet.php'; - Reload Settings > Connectors
- Observe that the Akismet option is not displayed, despite the plugin being active.
Screenshots, screen recording, code snippet
Installed as mu-plugin
Environment info
- WordPress: 7.1-alpha-62193
- PHP: 8.3.30
- Server: nginx/1.24.0
- Database: mysqli (Server: 8.0.44-0ubuntu0.24.04.2 / Client: mysqlnd 8.3.30)
- Browser: Firefox 149.0
- OS: macOS
- Theme: Twenty Twenty-Five 1.4
- MU Plugins:
- Allow filtering of syncing frequencies in polling client #76517 Sync rates filters.
- akm.php
- auto-activate-plugins.php
- query-monitor-file-mappings.php
- _admin_bar_gb_status.php
- Plugins:
- Gutenberg 22.9.0-rc.1
- Query Monitor 3.20.2
- Test Reports 1.2.1
Please confirm that you have searched existing issues in the repo.
- Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
- Yes
Please confirm which theme type you used for testing.
- Block
- Classic
- Hybrid (e.g. classic with theme.json)
- Not sure
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Connectors screenTracks connectors screen related tasksTracks connectors screen related tasks[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Type
Fields
Give feedbackNo fields configured for issues without a type.
Projects
Status
No status