[wp-trac] [WordPress Trac] #20350: get_page_by_title() query can return unpublished page or page revision

WordPress Trac wp-trac at lists.automattic.com
Tue Apr 3 14:20:22 UTC 2012


#20350: get_page_by_title() query can return unpublished page or page revision
-----------------------------+------------------------------
 Reporter:  wpdavis          |       Owner:
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  General          |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  has-patch close  |
-----------------------------+------------------------------

Comment (by scribu):

 Nevermind get_posts(); it doesn't support querying by title, since it's a
 bad idea. That's why get_page_by_title() isn't used anymore.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20350#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list