[wp-trac] [WordPress Trac] #41638: Must-Use Plugin File Still Available With a dot at the beginning of a filename (aka supposedly hidden)
WordPress Trac
noreply at wordpress.org
Thu Mar 26 06:54:06 UTC 2026
#41638: Must-Use Plugin File Still Available With a dot at the beginning of a
filename (aka supposedly hidden)
-------------------------------------------------+-------------------------
Reporter: ronalfy | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
| Review
Component: Plugins | Version: 4.8.1
Severity: normal | Resolution:
Keywords: has-patch needs-refresh dev- | Focuses:
feedback changes-requested | administration
-------------------------------------------------+-------------------------
Comment (by ronalfy):
Replying to [comment:4 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
> 1. Create and add a single file with a "." at the start of the file name
in the `mu-plugins` folder.
> 2. Head over to the admin dashboard and go to `/wp-
admin/plugins.php?plugin_status=mustuse`
> 3. Observe the changes.
> 4. ❌ Patch is failing
>
> === Expected result
> - Files that start with "." are hidden.
>
> === Additional Notes
> - If you had nothing else in the `mu-plugins` folder, the **Must use**
section will not be shown.
>
> === Screenshots/Screencast with results
> - Screenshot before:
> [[Image(https://i.ibb.co/wZL6ZNTL/must-use-visibility-before.png)]]
>
> - Screenshot after:
> [[Image(https://i.ibb.co/gZF144Jr/must-use-visibility-after.png)]]
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41638#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list