[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 1 16:46:58 UTC 2025


#63212: Enhancement: Do not throw PHP notice when file is not a pattern
registration file
--------------------------+------------------------
 Reporter:  webmandesign  |       Owner:  joemcgill
     Type:  enhancement   |      Status:  reviewing
 Priority:  normal        |   Milestone:  6.8
Component:  Themes        |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------------

Comment (by joemcgill):

 Hi @webmandesign. Could you give me more info about how you previously had
 set up your file structure for patterns? It sounds like you previously had
 sub-folders in the /patterns directory that would not get autoloaded, but
 now they are being autoloaded since [59872] and this causing the warning
 you describe. Is that correct?

 I don't think we will want to remove the `_doing_it_wrong()` that you are
 suggesting, but perhaps we can develop a workaround to support organizing
 pattern files in your `/patterns` directory that should not be autoloaded.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63212#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list