Make WordPress Core

Ticket #47860: 47860.diff

File 47860.diff, 728 bytes (added by atachibana, 7 years ago)
  • post.php

     
    48814881/**
    48824882 * Retrieve a page given its title.
    48834883 *
     4884 * If more than one post uses the same title, the post with the smallest ID will be returned.
     4885 * Be careful, In case of more than one post used the same title, it will check the oldest
     4886 * publication date not the smallest ID.
     4887 *
     4888 * Because this function uses the MySQL '=' comparison the $page_title will usually be matched
     4889 * as case insensitive with default collating.
     4890 *
    48844891 * @since 2.1.0
     4892 * @since 3.0.0 $post_type parameter was added.
    48854893 *
    48864894 * @global wpdb $wpdb WordPress database abstraction object.
    48874895 *