Opened 15 years ago
Closed 15 years ago
#9653 closed defect (bug) (invalid)
Notice Error in category-template
Reported by: | REGA1976 | Owned by: | filosofo |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 2.8 |
Component: | Taxonomy | Keywords: | needs-patch reporter-feedback |
Focuses: | Cc: |
Description
Notice: Object of class stdClass could not be converted to int in /var/www/wpcms/wp-includes/category-template.php on line 31
The Notice Error is in v2.8 and also in v2.7.x (there in line 65)
find the code in line 31
$category->parent == $category_id recursive recursion
and fix it to the following code
if ( isset($category->parent) == $category_id ) recursive recursion
Attachments (1)
Change History (7)
#1
@
15 years ago
- Component changed from General to Warnings/Notices
- Owner anonymous deleted
- Priority changed from low to normal
- Type changed from defect (bug) to enhancement
#3
@
15 years ago
- Keywords needs-patch reporter-feedback added; Notice Error has-patch needs-testing removed
- Milestone changed from 2.8 to Future Release
Note: See
TracTickets for help on using
tickets.
patch (and suggested fix) is not valid.
can you outline a means to reproduce this? the parent is a string ref when I test it.