[wp-trac] [WordPress Trac] #58154: Block theme singular templates do not enter main query loop

WordPress Trac noreply at wordpress.org
Fri Oct 27 18:34:25 UTC 2023


#58154: Block theme singular templates do not enter main query loop
-------------------------------------------------+-------------------------
 Reporter:  flixos90                             |       Owner:  flixos90
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  6.4
Component:  Editor                               |     Version:  6.1
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch has-testing-info has-      |     Focuses:
  unit-tests                                     |
-------------------------------------------------+-------------------------

Comment (by flixos90):

 In [changeset:"57020" 57020]:
 {{{
 #!CommitTicketReference repository="" revision="57020"
 Themes: Skip wrapping block template for singular content with a main
 query loop when the template was injected from outside the current theme.

 As a follow up to [56507], this fixes a bug that could occur for instance
 when plugins hijack the block template detection process to inject their
 own block template with entirely custom logic.

 Props afragen, hellofromTonya, costdev, mukesh27, huzaifaalmesbah,
 flixos90.
 Merges [57019] to the 6.4 branch.
 Fixes #59736.
 See #58154.
 }}}

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


More information about the wp-trac mailing list