#15263 closed defect (bug) (fixed)
Several Template Hierarchy areas a broken
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 3.1 |
| Component: | Template | Version: | 3.1 |
| Severity: | critical | Keywords: | needs-patch |
| Cc: | admin@… |
Description
I think I found a problem in trunk. If you category-term.php in a there does not work, category.php does, I have tested author, taxonomy, and tag with similar results. I was able to duplicate on 2 sites running the most recent trunk. I think the problem is in [15611]. When I revert the wp-includes/theme.php back to revision 15610 it works as expected.
Change History (9)
Take a category, tax, or tag:
(using categories because it is more likely you have one to test. For this example the catagory ID is 5 and slug is test)
Create a category.php to your theme visit your category test and the template is your category template.
Rename it to category-5.php or category-test.php and the visit your category and you will see it use your archive.php or index.php rather than your template.
mrmist was also able to reproduce in #wordpress IRC today.
- Cc admin@… added
- Keywords needs-patch added; reporter-feedback removed
get_query_var( 'cat' ) returns a blank string on the category archives page.
- Resolution set to fixed
- Status changed from accepted to closed

Could you post more detailed steps to reproduce?