Opened 18 years ago
Closed 17 years ago
#9653 closed defect (bug) (invalid)
Notice Error in category-template
| Reported by: | REGA1976 | Owned by: | filosofo |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Taxonomy | Version: | 2.8 |
| Severity: | normal | Keywords: | needs-patch reporter-feedback |
| Cc: | Focuses: |
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)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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.