[wp-trac] [WordPress Trac] #18993: is_post_type_archive() returns true in the admin area

WordPress Trac wp-trac at lists.automattic.com
Tue Oct 18 23:24:49 UTC 2011


#18993: is_post_type_archive() returns true in the admin area
----------------------------+-----------------------------
 Reporter:  johnbillion     |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:  3.3
 Severity:  normal          |   Keywords:  needs-patch
----------------------------+-----------------------------
 When viewing a custom post type listing screen in the admin area,
 `is_post_type_archive()` returns true.

 The offending code (as of r18999) starts at line 1568 in `wp-
 includes/query.php`.

 A quick fix would be to stick an `is_admin()` check in there, but I'm not
 sure that's the right thing to do so I'll leave it up to someone else to
 patch.

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


More information about the wp-trac mailing list