[wp-trac] [WordPress Trac] #21298: get_page_by_path() returns trashed pages
WordPress Trac
wp-trac at lists.automattic.com
Wed Jul 18 01:58:40 UTC 2012
#21298: get_page_by_path() returns trashed pages
--------------------------+------------------------------
Reporter: scribu | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version:
Severity: normal | Resolution:
Keywords: |
--------------------------+------------------------------
Comment (by SergeyBiryukov):
Hmm, `get_page_by_path()` indeed returns trashed pages, but I could not
reproduce seeing the page as if it was published due to the check in
`get_posts()`: [[BR]]
http://core.trac.wordpress.org/browser/tags/3.4.1/wp-
includes/query.php#L2674
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21298#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list