mirrored from git://develop.git.wordpress.org/
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Posts, Post Types: Fix
WP_Query
parameter used by `get_page_by_titl…
…e()`. 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
- Loading branch information
1 parent
77e65ea
commit 6c6a674
Showing
2 changed files
with
84 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters