mirror of
git://develop.git.wordpress.org/
synced 2025-02-07 16:10:43 +01:00
6c6a6747a0
Fixes the call to `WP_Query` within `get_page_by_title()` by using the correct title parameter, `title`. Modify the `orderby` parameter to prioritize the oldest published date over the smallest post ID. This ensures the behaviour matches that of the previous version of `get_page_by_title()`. The tests have been modified to include a populated post table to ensure the posts returned are matched by design rather than coincidence. Follow up to [54234]. Props dd32, timothyblynjacobs, peterwilsoncc. Fixes #56609. See #36905. git-svn-id: https://develop.svn.wordpress.org/trunk@54271 602fd350-edb4-49c9-b593-d223f7449a82