[wp-trac] [WordPress Trac] #54917: Block template - missed check for support

WordPress Trac noreply at wordpress.org
Wed Jan 26 09:56:54 UTC 2022


#54917: Block template - missed check for support
-------------------------+-----------------------------
 Reporter:  madeinua     |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Themes       |    Version:  5.9
 Severity:  minor        |   Keywords:
  Focuses:  template     |
-------------------------+-----------------------------
 I suppose this part is missed at the beginning of locate_block_template():

 {{{
 if ( ! current_theme_supports( 'block-templates' ) ) {
     return $template;
 }
 }}}

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


More information about the wp-trac mailing list