Opened 7 years ago
Last modified 4 years ago
#46982 new defect (bug)
Avoid loading dot files in the mu-plugins directory.
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Awaiting Review | Priority: | normal |
| Severity: | normal | Version: | 2.8 |
| Component: | Plugins | Keywords: | has-patch needs-refresh needs-testing |
| Focuses: | Cc: |
Description
In some circumstances, metadata files are generated in the mu-plugins directory. For example, editing a plugin file my-mu-plugin.php folder using a Mac via SMB can result in a metadata file ._my-mu-plugin.php being created. Because of the way wp_get_mu_plugins() works, this metadata file will be loaded as a valid plugin and the contents of the file will be output in the page header.
I'm attaching a small patch to avoid loading ._ files in the unfortunate event that they are created.
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
Avoid loading ._ files in mu-plugins.