Replace raw database queries in `get_page_by_path` with a call to `WP_Query` class. This has a number of benefits, including improved caching and priming of post caches. To maintain backwards compatibility, this function calls `WP_Query` to gets all matching posts of all post statuses. Props spacedmonkey, peterwilsoncc, costdev, Fixes #56689. Built from https://develop.svn.wordpress.org/trunk@55169 git-svn-id: http://core.svn.wordpress.org/trunk@54702 1a063a9b-81f0-0310-95a4-ce76da25c4cd
269 KiB
269 KiB