[wp-trac] [WordPress Trac] #53280: Incorrect use of WP_Query::get_posts in new get_block_template and get_block_templates functions
WordPress Trac
noreply at wordpress.org
Wed May 26 11:40:04 UTC 2021
#53280: Incorrect use of WP_Query::get_posts in new get_block_template and
get_block_templates functions
--------------------------+------------------------------
Reporter: david.binda | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Widgets | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses: performance
--------------------------+------------------------------
Comment (by david.binda):
There seems to be the same issue in the
`wp_filter_wp_template_unique_post_slug` function (also part of the same
commit - r51003 ). See https://core.trac.wordpress.org/browser/trunk/src
/wp-includes/theme-templates.php?rev=51003#L52 and
https://core.trac.wordpress.org/browser/trunk/src/wp-includes/theme-
templates.php?rev=51003#L62
I'm attaching another patch, addressing the other bit. Not sure if I
should combine those patches, or if a new ticket should be opened for the
other instance.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53280#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list