[wp-trac] [WordPress Trac] #46982: Avoid loading dot files in the mu-plugins directory.

WordPress Trac noreply at wordpress.org
Thu Apr 18 19:08:07 UTC 2019


#46982: Avoid loading dot files in the mu-plugins directory.
----------------------------+-----------------------------
 Reporter:  dcavins         |      Owner:  (none)
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Filesystem API  |    Version:  trunk
 Severity:  normal          |   Keywords:  has-patch
  Focuses:                  |
----------------------------+-----------------------------
 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.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46982>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list