Opened 16 years ago
Closed 15 years ago
#10333 closed defect (bug) (fixed)
Pages in Search results with the_category() shows default category
Reported by: | pavelevap | Owned by: | |
---|---|---|---|
Milestone: | 3.0 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Template | Keywords: | needs-patch |
Focuses: | Cc: |
Description
When using the_category() in Search results (search.php) in template, pages are shown with default category. That is nonsense, no category should be displayed. Tested with default theme, only search for something which contains default page, then you will see results with this page in category: Uncategorized.
Note: See
TracTickets for help on using
tickets.
This has new implications in 3.0. Some well-placed is_object_in_taxonomy() checks should do the trick.