[wp-trac] [WordPress Trac] #53176: Block Editor: Backport the FSE infrastructure required to make the template editor work for classic themes.

WordPress Trac noreply at wordpress.org
Mon Jun 14 20:38:53 UTC 2021


#53176: Block Editor: Backport the FSE infrastructure required to make the template
editor work for classic themes.
--------------------------------------+--------------------------
 Reporter:  youknowriad               |       Owner:  youknowriad
     Type:  task (blessed)            |      Status:  closed
 Priority:  normal                    |   Milestone:  5.8
Component:  Editor                    |     Version:
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+--------------------------

Comment (by jorbin):

 In [changeset:"51144" 51144]:
 {{{
 #!CommitTicketReference repository="" revision="51144"
 Block Editor: Prevent duplicate queries

 When passing args to `WP_Query::__construct` method (in this case, but
 creating a `new WP_Query`, this one internally executes the
 `WP_Query::get_posts` method and stores the result in the
 `WP_Query::posts` property. When calling the `WP_Query::get_posts` again,
 the same SQL query gets executed, and the result is again stored in the
 `WP_Query::posts` property.

 This was introduced in [51003].

 Props david.binda, jorbin.
 Fixes #53280. See #53176.
 }}}

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


More information about the wp-trac mailing list