WordPress.org

Make WordPress Core

Opened 3 months ago

Last modified 3 months ago

#46982 new defect (bug)

Avoid loading dot files in the mu-plugins directory.

Reported by: dcavins Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 2.8
Component: Plugins Keywords: has-patch
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 3 months ago.
Avoid loading ._ files in mu-plugins.

Download all attachments as: .zip

Change History (3)

@dcavins
3 months ago

Avoid loading ._ files in mu-plugins.

#1 @SergeyBiryukov
3 months ago

  • Component changed from Filesystem API to Plugins

#2 @SergeyBiryukov
3 months ago

  • Version changed from trunk to 2.8

Introduced in [10737].

Note: See TracTickets for help on using tickets.