[wp-trac] [WordPress Trac] #64072: Improve error message in `WP_Block_Templates_Registry::unregister()` to include template name

WordPress Trac noreply at wordpress.org
Fri Oct 3 05:35:11 UTC 2025


#64072: Improve error message in `WP_Block_Templates_Registry::unregister()` to
include template name
--------------------------+--------------------------------------
 Reporter:  mukesh27      |      Owner:  mukesh27
     Type:  defect (bug)  |     Status:  assigned
 Priority:  normal        |  Milestone:  6.9
Component:  Editor        |    Version:  6.7
 Severity:  normal        |   Keywords:  has-patch has-unit-tests
  Focuses:  template      |
--------------------------+--------------------------------------
 Currently, when attempting to unregister a non-existent block template,
 `WP_Block_Templates_Registry::unregister()` returns a generic error
 message without reference to the template name. It use `__( 'Template "%s"
 is not registered.' )` in error message without using template name.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64072>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list