[wp-trac] [WordPress Trac] #18583: is_post_type_archive() shouldn't return true if is_search() is true

WordPress Trac wp-trac at lists.automattic.com
Sat Sep 3 17:39:18 UTC 2011


#18583: is_post_type_archive() shouldn't return true if is_search() is true
--------------------------+-----------------------------
 Reporter:  ocean90       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Query         |    Version:  3.1
 Severity:  normal        |   Keywords:  has-patch
--------------------------+-----------------------------
 - Register a post type.
  - Do a search ''domain.com/post_type/?s=foo''
  - Result: {{{is_post_type_archive()}}} will return true,
 {{{is_archive()}}} too.

 In my opinion  {{{is_post_type_archive()}}} shouldn't return true on a
 search.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18583>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list