WordPress.org

Make WordPress Core

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#6095 closed defect (bug) (duplicate)

Taxonomy.php expecting array(), getting WP_Error on line 1014

Reported by: highplainsdrifter Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.3.3
Component: General Keywords: taxonomy.php, wp_error, wp_insert_term, pages
Focuses: Cc:

Description

Fatal error: Cannot use object of type WP_Error as array in /home/military/public_html/wp-includes/taxonomy.php on line 1014

This happens when I create or edit a Page. The Page's content will save or be created, though that message above is displayed no matter what I do.

I found this: http://trac.wordpress.org/ticket/5226

Yet the code is still...

$id = wp_insert_term($term, $taxonomy);
$term_ids[] = $id['term_id'];

Change History (2)

#1 @ryan
10 years ago

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

That's because it is fixed in 2.5, not 2.3.

#2 @ryan
10 years ago

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