Make WordPress Core

#56660 closed enhancement (duplicate)

get_pages lack of performance

Reported by: moudi87's profile moudi87 Owned by:
Milestone: Priority: normal
Severity: major Version: 1.5
Component: Posts, Post Types Keywords:
Focuses: administration, performance Cc:


Hello, i think that sometimes when using get_pages and the result that must be displayed is big enough, this function might lead to crash the page when executing the query, so setting a default number instead of an empty string as value for 'number' key is way more better and mandatory in some cases like we mentioned above to avoid page crash

Change History (3)

#1 @SergeyBiryukov
19 months ago

  • Focuses rtl removed
  • Keywords changes-requested removed

Hi there, welcome to WordPress Trac! Thanks for the report.

Just linking to some related tickets here: #9864, #12821.

Adjusting the keywords per Trac Workflow Keywords.

Last edited 19 months ago by SergeyBiryukov (previous) (diff)

#2 @spacedmonkey
10 months ago

@moudi87 When Beta 1 come tomorrow (27th of June), can you test again? There has been lots of changes in WP 6.3 to get_pages.

#3 @spacedmonkey
10 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

This ticket was closed as part of #12821. Marking this ticket as duplicate.

Note: See TracTickets for help on using tickets.