[wp-trac] [WordPress Trac] #59583: Patterns: `theme` attribute not inserted in Template Part blocks

WordPress Trac noreply at wordpress.org
Tue Oct 10 13:19:57 UTC 2023


#59583: Patterns: `theme` attribute not inserted in Template Part blocks
--------------------------------------+------------------------------
 Reporter:  Bernhard Reiter           |       Owner:  Bernhard Reiter
     Type:  defect (bug)              |      Status:  closed
 Priority:  high                      |   Milestone:  6.4
Component:  General                   |     Version:
 Severity:  major                     |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+------------------------------
Changes (by Bernhard Reiter):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"56818" 56818]:
 {{{
 #!CommitTicketReference repository="" revision="56818"
 Patterns: Inject `theme` attribute into Template Part blocks.

 [56805] introduced a regression: The `theme` attribute was no longer
 injected into Template Part blocks inside of patterns. This caused errors
 on the frontend, where instead of a given template part, an error message
 such as `Template part has been deleted or is unavailable: header` was
 seen.

 This changeset rectifies that problem, and adds unit test coverage to
 guard against future regressions.

 Follow-up to [56805].
 Props scruffian, gziolo.
 Fixes #59583.
 }}}

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


More information about the wp-trac mailing list