Make WordPress Core

Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#7366 closed defect (bug) (fixed)

Incorrect message displayed on editing link categories

Reported by: scohoust Owned by:
Priority: normal Milestone: 2.6.1
Component: Administration Version: 2.6
Severity: normal Keywords: has-patch
Cc: Focuses:

Description

When updating a link category, if the update causes an error (duplicate slug, for example), the message displayed is still "Category updated" even though it hasn't.

Stems from #4809 where link_category.php isn't expecting WP_Error returned.

Attachments (1)

7366.diff​ (611 bytes ) - added by scohoust 18 years ago.
Checks for WP_Error and displays accordingly

Download all attachments as: .zip

Change History (5)

@scohoust
18 years ago

Checks for WP_Error and displays accordingly

#1 @scohoust
18 years ago

  • Keywords has-patch added

Not ideal, as the user has no idea why the update didn't work, but the patch keeps it consistent with tags and post categories.

#2 @ryan
18 years ago

  • Resolution → fixed
  • Status new → closed

(In [8391]) Check for WP_Error return from wp_update_term(). Props scohoust. fixes #7366 for trunk

#3 @ryan
18 years ago

  • Milestone 2.7 → 2.6.1

#4 @ryan
18 years ago

(In [8392]) Check for WP_Error return from wp_update_term(). Props scohoust. fixes #7366 for 2.6

Note: See TracTickets for help on using tickets.