[wp-trac] [WordPress Trac] #59224: get_pages: duplicate `WP_Query::get_posts` call
WordPress Trac
noreply at wordpress.org
Tue Aug 29 10:05:04 UTC 2023
#59224: get_pages: duplicate `WP_Query::get_posts` call
-------------------------------+--------------------------
Reporter: david.binda | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.3.2
Component: Posts, Post Types | Version: 6.3
Severity: normal | Resolution:
Keywords: has-patch | Focuses: performance
-------------------------------+--------------------------
Comment (by mukesh27):
Thank you, @davidbinda, for providing the ticket and patch.
As you mentioned, the lack of extra query requests due to the wp_query
cache explains why this went unnoticed. Well done on catching that detail.
The proposed changes are looks good to me.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59224#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list