[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 Nov 22 13:24:40 UTC 2024


#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:  major                    |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:  template
-------------------------------------+------------------------------
Changes (by karthickmurugan):

 * keywords:  needs-patch => has-patch needs-testing


Comment:

 Hello all.,

 The above patch fixes the underscore issue in register_block_type
 function. Please have a look at this video for clear explanation and
 testing before and after the fix.

 https://share.cleanshot.com/qknmwCwGjX5tBWbCdFX5

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


More information about the wp-trac mailing list