[wp-trac] [WordPress Trac] #56467: Update @wordpress packages and backport changes from Gutenberg plugin into Core
WordPress Trac
noreply at wordpress.org
Tue Oct 11 17:29:09 UTC 2022
#56467: Update @wordpress packages and backport changes from Gutenberg plugin into
Core
--------------------------------------+------------------------------
Reporter: Bernhard Reiter | Owner: Bernhard Reiter
Type: task (blessed) | Status: assigned
Priority: normal | Milestone: 6.1
Component: Editor | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+------------------------------
Comment (by davidbaumwald):
In [changeset:"54494" 54494]:
{{{
#!CommitTicketReference repository="" revision="54494"
Editor: Ensure `WP_Query` and `WP_Term_Query` results are referenced
properly when creating dynamic template names for use in the site editor.
[54445] updated the new dynamic template name functions used by the site
editor in 6.1 to use `WP_Query` and `WP_Term_Query` instances in place of
`get_posts` and `get_terms` respectively. However, the latter functions
return an array of results whereas `WP_Query` instances store their found
results in a class property. This change updates the code to reference
either `$posts_query->posts` or `$terms_query->terms` where necessary.
Follow-up to [54280], [54333], [54370], [54388], and [54445].
Props bernhard-reiter, spacedmonkey, davidbaumwald.
See #56467.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56467#comment:343>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list