[wp-trac] [WordPress Trac] #61110: Editor: Fix block template files query for a post-type

WordPress Trac noreply at wordpress.org
Wed May 1 05:39:24 UTC 2024


#61110: Editor: Fix block template files query for a post-type
--------------------------+--------------------
 Reporter:  Mamaduka      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  6.5.3
Component:  Editor        |    Version:  6.3
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+--------------------
 Sync ticket for https://github.com/WordPress/gutenberg/pull/61244.

 Fixes a bug where block template files that aren't defined in theme.json's
 `customTemplates` were missing from `get_block_templates` for a post-type
 query.

 The custom template files with no associated post-types are available for
 all post-types.

 Note: Original regression was introduced in r55687 but only started
 affecting Editor users in WP 6.5.

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


More information about the wp-trac mailing list