Make WordPress Core

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)

category-template.php​ (30.3 KB ) - added by REGA1976 18 years ago.

Download all attachments as: .zip

Change History (7)

#1 @REGA1976
18 years ago

  • Component General → Warnings/Notices
  • Owner anonymous removed
  • Priority low → normal
  • Type defect (bug) → enhancement

#2 @janeforshort
18 years ago

  • Keywords has-patch needs-testing added

#3 @Denis-de-Bernardy
18 years ago

  • Keywords needs-patch reporter-feedback added; Notice Error has-patch needs-testing removed
  • Milestone 2.8 → Future Release

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.

#4 @Denis-de-Bernardy
17 years ago

  • Component Warnings/Notices → Taxonomy
  • Owner set to filosofo

#5 @Denis-de-Bernardy
17 years ago

  • Milestone Future Release → 2.9
  • Type enhancement → defect (bug)

#6 @westi
17 years ago

  • Milestone 2.9
  • Resolution → invalid
  • Status new → closed

Cant reproduce this at all or identify any issue by inspection.

Closing as Invalid.

Note: See TracTickets for help on using tickets.