[wp-trac] [WordPress Trac] #62523: Can't register Block Templates for CPTs with an underscore "_" character in the key

WordPress Trac noreply at wordpress.org
Fri Jan 10 10:41:45 UTC 2025


#62523: Can't register Block Templates for CPTs with an underscore "_" character in
the key
-------------------------------------------------+-------------------------
 Reporter:  alexandrebuffet                      |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  Editor                               |     Version:  6.7
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-testing has-         |     Focuses:  template
  testing-info                                   |
-------------------------------------------------+-------------------------

Comment (by karthickmurugan):

 @poena - Created a new patch file ( 62523.diff ) and tested it and it is
 working fine.

 You're absolutely right that the underscore restriction might have been
 intentional. Unfortunately, I couldn't find specific documentation or
 discussions explaining the reasoning behind it. If anyone recalls or has
 insights into why this restriction exists, it would be great to hear more.

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


More information about the wp-trac mailing list