[wp-trac] [WordPress Trac] #27094: get_boundary_post() doesn't work for custom post types
WordPress Trac
noreply at wordpress.org
Mon Oct 5 13:01:31 UTC 2015
#27094: get_boundary_post() doesn't work for custom post types
------------------------------------------+-----------------------------
Reporter: PioneerSkies | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Query | Version: 3.8.1
Severity: normal | Resolution:
Keywords: needs-patch needs-unit-tests | Focuses:
------------------------------------------+-----------------------------
Comment (by tyxla):
I don't see a particular reason to have to specify the post type. This
function relies on the global `$post` and `$wp_query` anyway (it will
return `NULL` if there is no post in the current query, or if the current
post is a page or an attachment), so I believe the best way to achieve
this is to use the post type of the current post.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27094#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list