Ticket #7366 (closed defect (bug): fixed)

Opened 4 years ago

Last modified 4 years ago

Incorrect message displayed on editing link categories

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

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

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

Change History

Checks for WP_Error and displays accordingly

  • 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.

comment:2   ryan4 years ago

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

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

comment:3   ryan4 years ago

  • Milestone changed from 2.7 to 2.6.1

comment:4   ryan4 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.