[wp-trac] [WordPress Trac] #16312: is_category() returns false while in index

WordPress Trac wp-trac at lists.automattic.com
Wed Jan 19 20:48:21 UTC 2011


#16312: is_category() returns false while in index
----------------------------+-----------------------------
 Reporter:  FrancescoRizzi  |       Owner:
     Type:  defect (bug)    |      Status:  reopened
 Priority:  normal          |   Milestone:  Future Release
Component:  Query           |     Version:  3.0.4
 Severity:  normal          |  Resolution:
 Keywords:  needs-patch     |
----------------------------+-----------------------------

Comment (by SergeyBiryukov):

 Replying to [ticket:16312 FrancescoRizzi]:
 > Then, WP calls index.php instead of (as one may expect) category.php -
 which may be debatable.
 Actually a 404 template is used here (same for non-existing posts, pages,
 tags). According to Template Hierarchy, it can be `index.php` if `404.php`
 doesn't exist in your theme.

 If we decide to update the inline docs, I guess we also need to include
 that explanation
 for all appropriate `is_*()` functions for consistency.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16312#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list