[wp-trac] [WordPress Trac] #12821: Merge get_posts() and get_pages()
WordPress Trac
noreply at wordpress.org
Tue Jan 3 11:16:28 UTC 2023
#12821: Merge get_posts() and get_pages()
-------------------------------------+---------------------------
Reporter: mikeschinkel | Owner: spacedmonkey
Type: enhancement | Status: assigned
Priority: normal | Milestone: 6.2
Component: Posts, Post Types | Version: 3.0
Severity: normal | Resolution:
Keywords: needs-testing has-patch | Focuses: performance
-------------------------------------+---------------------------
Comment (by spacedmonkey):
While working on this ticket, I found another important issues #57373. The
issue is means that post objects are loaded twice when running unlimited
queires. As in passing -1 and expecting all posts / pages in a query. This
is specially a problem here, as a `get_pages` call to get all pages is
called on every page requests. A solution for #57373 will need to found
before committing this change.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/12821#comment:60>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list