[wp-trac] [WordPress Trac] #63212: Enhancement: Do not throw PHP notice when file is not a pattern registration file
WordPress Trac
noreply at wordpress.org
Tue Apr 8 13:54:15 UTC 2025
#63212: Enhancement: Do not throw PHP notice when file is not a pattern
registration file
-----------------------------------------+------------------------
Reporter: webmandesign | Owner: joemcgill
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.8
Component: Themes | Version: trunk
Severity: normal | Resolution: fixed
Keywords: has-patch changes-requested | Focuses:
-----------------------------------------+------------------------
Changes (by joemcgill):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"60142" 60142]:
{{{
#!CommitTicketReference repository="" revision="60142"
Themes: Allow files in a block theme's 'patterns' directory to be
filterable.
Since [59872] all PHP files in the 'patterns' directory or subdirectories
are auto registered. Adding a filter prior to autoregistration allows
theme developers to modify the list of files before the auto registration.
Props webmandesign, joemcgill, jorbin, poena.
Fixes #63212.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63212#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list