[wp-trac] [WordPress Trac] #24763: Add filter to query in get_page_by_path function

WordPress Trac noreply at wordpress.org
Thu Feb 6 19:34:46 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:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------

Comment (by zbtirrell):

 We are specifically interested in adding additional post types, so this is
 the part that we are most interested in having the filter change:

  (post_type = '$post_type_sql' OR post_type = 'attachment')

 Perhaps we could allow for $post_types to be an array that gets imploded
 to build this segment?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/24763#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list