WP_Query used internally in get_pages()

In WordPress 6.3, the function get_pages() has been updated to utilize WP_Query internally, resolving a 13-year-old ticket (#12821). This modification significantly reduces the complexity of the get_pages() function by offloading the burden of querying databases and handling the cache to WP_Query. The change builds upon the previous enhancement introduced in #22176, which introduced query caching to WP_Query.

This post was originally published on Make Core by Jonny Harris.

Follow us

Don't be shy, get in touch. We love meeting interesting people and making new friends.