Make WordPress Core

Opened 5 years ago

Last modified 2 years ago

#46982 new defect (bug)

Avoid loading dot files in the mu-plugins directory.

Reported by: dcavins's profile dcavins 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)

46982.1.diff (472 bytes) - added by dcavins 5 years ago.
Avoid loading ._ files in mu-plugins.

Download all attachments as: .zip

Change History (5)

@dcavins
5 years ago

Avoid loading ._ files in mu-plugins.

#1 @SergeyBiryukov
5 years ago

  • Component changed from Filesystem API to Plugins

#2 @SergeyBiryukov
5 years ago

  • Version changed from trunk to 2.8

Introduced in [10737].

#3 @azouamauriac
2 years ago

  • Keywords needs-refresh needs-testing added

#4 @azouamauriac
2 years ago

May be this is related to #41638

Note: See TracTickets for help on using tickets.