[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
Tue Jan 28 15:46:08 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: 6.7.2
Component: Editor | Version: 6.7
Severity: normal | Resolution:
Keywords: has-patch needs-testing has- | Focuses: template
testing-info needs-unit-tests |
-------------------------------------------------+-------------------------
Comment (by flixos90):
+1 for adding a test to cover support for template names that contain `_`.
@karthickmurugan Would you be able to add a PHPUnit test for this?
Other than that, the latest patch looks good to me, and it makes sense -
it needs to be allowed to register block templates for custom post types
with underscores.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62523#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list