[wp-trac] [WordPress Trac] #18993: is_post_type_archive() returns true in the admin area
WordPress Trac
wp-trac at lists.automattic.com
Sun Oct 7 03:34:04 UTC 2012
#18993: is_post_type_archive() returns true in the admin area
----------------------------+----------------------
Reporter: johnbillion | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Administration | Version: 3.3
Severity: normal | Resolution: invalid
Keywords: close |
----------------------------+----------------------
Changes (by scribu):
* status: reopened => closed
* resolution: => invalid
* milestone: Awaiting Review =>
Comment:
Replying to [comment:7 mintindeed]:
> As far as I can tell, no other template conditional tags return true in
the admin.
Here are some URLs that you can reach by clicking on various links in /wp-
admin/edit.php:
{{{
/wp-admin/edit.php?tag=test -> is_archive, is_tag, is_admin
/edit.php?category_name=uncategorized -> is_archive, is_category, is_admin
/wp-
admin/edit.php?s&post_status=all&post_type=post&action=-1&m=201210&cat=1&paged=1&mode=list&action2=-1
-> is_archive, is_date, is_month, is_category, is_admin
}}}
The query flags do not and should not take into account if you're in wp-
admin or not.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18993#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list