WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#4808 closed defect (bug) (duplicate)

Fatal: Object could not be converted to string taxonomy.php:925

Reported by: apokalyptik Owned by: rboren
Milestone: Priority: highest omg bbq
Severity: critical Version: 2.3
Component: Administration Keywords: object string taxonomy convert 925
Focuses: Cc:

Description

The problem occurs when $parent is an object and not an integer as expected. The patch I'm including handles both possible cases as I'm not entirely sure if $parent should *always* be an integer, *always* be an object, or whether both types are acceptable here (I'm not familiar enough with the taxonomy code.) The first 2 possibilities warrant more elegant fixes than this.

Attachments (1)

4808.diff (1.1 KB) - added by apokalyptik 7 years ago.
Fix for possible int OR obj values here

Download all attachments as: .zip

Change History (4)

apokalyptik7 years ago

Fix for possible int OR obj values here

comment:2 ryan7 years ago

  • Resolution set to duplicate
  • Status changed from new to closed

comment:3 foolswisdom7 years ago

  • Milestone 2.3 deleted
Note: See TracTickets for help on using tickets.