Opened 9 years ago
Last modified 2 months ago
#41638 new defect (bug)
Must-Use Plugin File Still Available With a dot at the beginning of a filename (aka supposedly hidden)
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Awaiting Review | Priority: | normal |
| Severity: | normal | Version: | 4.8.1 |
| Component: | Plugins | Keywords: | has-patch needs-refresh dev-feedback changes-requested |
| Focuses: | administration | Cc: |
Description
If you place a dot in front of a must-use plugin file, I believe it shouldn't be included as part of your Must-Use arsenal and the code shouldn't be available as well.
Perhaps I'm doing it the wrong way, but when I place a dot in front of something (e.g., folder, file), I expect that file to no longer be available.
Attachments (3)
Change History (8)
#1
@
4 years ago
- Keywords has-patch needs-testing needs-refresh dev-feedback added
hello thank you for you ticket, I have submit a fix, would you like to test it?
thank you.
#2
@
4 years ago
- Focuses ui removed
hello @SergeyBiryukov could you please take a look over here? if you accepte the ticket, I think it should move forward to 6.0 milestone. thanks
#3
@
12 months ago
Hi All,
I have just taken a look at this, and can confirm that this issue still exists, and will upload a refreshed patch shortly. For visibility I have attached a bug report too, to hopefully increase visibility on this ticket.
Bug Report
Description
When a single php plugin file is hidden using the linux method by inserting a leading dot into the filename, WordPress will still include this file as a plugin.
Environment
- WordPress: 6.9-alpha-60093-src
- PHP: 8.4.7
- Server: nginx/1.27.5
- Database: mysqli (Server: 8.0.40 / Client: mysqlnd 8.4.7)
- Browser: Chrome 137.0.0.0
- OS: macOS
- Theme: Twenty Seventeen 3.9
- MU Plugins: None activated
- Plugins:
- Test Reports 1.2.0
Steps to Reproduce
- Insert a single php plugin into the mu-plugins directory.
- Rename the plugin so that it has a leading dot (.) into the file name.
- 🐞 Bug occurs.
Expected Results
- ✅ Plugin should not appear in the mu-plugins list.
Actual Results
- ❌ Plugin still appears, and in the case the meta is not included in the file the plugin name will show with the leading dot.
#4
follow-up:
↓ 5
@
4 months ago
- Keywords changes-requested added; needs-testing removed
Patch Testing Report
Patch Tested: https://core.trac.wordpress.org/attachment/ticket/41638/41638.2.diff
Environment
- WordPress: 7.0-alpha-61215-src
- PHP: 8.2.29
- Server: nginx/1.29.4
- Database: mysqli (Server: 8.4.8 / Client: mysqlnd 8.2.29)
- Browser: Chrome 144.0.0.0
- OS: Linux
- Theme: Twenty Twenty-Five 1.4
- MU Plugins:
- .testmu.php 1.0
- Plugins:
- Test Reports 1.2.1
Steps taken
- Create and add a single file with a "." at the start of the file name in the
mu-pluginsfolder. - Head over to the admin dashboard and go to
/wp-admin/plugins.php?plugin_status=mustuse - Observe the changes.
- ❌ Patch is failing
Expected result
- Files that start with "." are hidden.
Additional Notes
- If you had nothing else in the
mu-pluginsfolder, the Must use section will not be shown.
Screenshots/Screencast with results
- Screenshot before:
- Screenshot after:
#5
in reply to:
↑ 4
@
2 months ago
Replying to r1k0:
I could not reproduce this. When I tested this patch, it hid the files appropriately. Can you possibly double-check the . character?
Patch Testing Report
Patch Tested: https://core.trac.wordpress.org/attachment/ticket/41638/41638.2.diff
Environment
- WordPress: 7.0-alpha-61215-src
- PHP: 8.2.29
- Server: nginx/1.29.4
- Database: mysqli (Server: 8.4.8 / Client: mysqlnd 8.2.29)
- Browser: Chrome 144.0.0.0
- OS: Linux
- Theme: Twenty Twenty-Five 1.4
- MU Plugins:
- .testmu.php 1.0
- Plugins:
- Test Reports 1.2.1
Steps taken
- Create and add a single file with a "." at the start of the file name in the
mu-pluginsfolder.- Head over to the admin dashboard and go to
/wp-admin/plugins.php?plugin_status=mustuse- Observe the changes.
- ❌ Patch is failing
Expected result
- Files that start with "." are hidden.
Additional Notes
- If you had nothing else in the
mu-pluginsfolder, the Must use section will not be shown.Screenshots/Screencast with results
- Screenshot before:
- Screenshot after:


Must-Use Showing Dot File Name Available