[wp-trac] [WordPress Trac] #24763: Add filter to query in get_page_by_path function
WordPress Trac
noreply at wordpress.org
Tue Feb 11 14:36:49 UTC 2014
#24763: Add filter to query in get_page_by_path function
-------------------------------+------------------------------
Reporter: zbtirrell | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version: 3.6
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
-------------------------------+------------------------------
Comment (by zbtirrell):
I did not make a patch for `get_page_by_title()` because it does not
suffer from the same difficulty. Since it simply does a query on title
and post type, it does not consider the page's hierarchy/ancestry, so is
not broken if a page has an parent that is not a page.
So, while extending that function to support an array would potentially be
useful, it seems out of scope from this request.
Note: I tested the patch against trunk.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/24763#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list