[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:18:10 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 |
-----------------------------+------------------------------
Changes (by scribu):
* keywords: has-patch => has-patch close
Comment:
get_page_by_title() is not used anywhere in Core and should be deprecated,
IMO.
If you want to check the status directly through SQL, use get_posts().
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20350#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list