[wp-trac] [WordPress Trac] #56609: Handbook - links pointing to is_wp_error function

WordPress Trac noreply at wordpress.org
Wed Sep 21 05:27:26 UTC 2022


#56609: Handbook - links pointing to is_wp_error function
-------------------------------------+------------------------------
 Reporter:  dingo_d                  |       Owner:  peterwilsoncc
     Type:  defect (bug)             |      Status:  closed
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  General                  |     Version:
 Severity:  normal                   |  Resolution:  fixed
 Keywords:  needs-patch 2nd-opinion  |     Focuses:  docs
-------------------------------------+------------------------------
Changes (by peterwilsoncc):

 * owner:  (none) => peterwilsoncc
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"54271" 54271]:
 {{{
 #!CommitTicketReference repository="" revision="54271"
 Posts, Post Types: Fix `WP_Query` parameter used by `get_page_by_title()`.

 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.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56609#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list