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

Opened 4 years ago

Last modified 4 years ago

Links not reassigned to default category after category deletion

Reported by: niladam Owned by: anonymous
Priority: normal Milestone: 2.6.1
Component: General Version: 2.6
Severity: normal Keywords: links blogroll has-patch
Cc:

Description

Hello folks, my first ticket so bare with me please.

Having 3 categories for the links (blogroll), after the removal of one of them the links dont get assigned to the default category. The links in the removed category simply has no category.

Thanks.

Attachments

7316.diff Download (1.6 KB) - added by scohoust 4 years ago.
Passes the default link category id

Change History

  • Priority changed from high to normal
  • Severity changed from major to normal

I can confirm that this behavior exists on 2.6. On deletion of link category, all the members of that category should be moved to the default link category.

  • Milestone changed from 2.7 to 2.6.1

Passes the default link category id

  • Keywords has-patch added

wp_delete_term wasn't getting the default id. Added it in and done a bit of tidying.

comment:4   ryan4 years ago

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

(In [8388]) Fix assignment of links to the default category when a category is deleted. Props scohoust. fixes #7316 for trunk

comment:5   ryan4 years ago

(In [8389]) Fix assignment of links to the default category when a category is deleted. Props scohoust. fixes #7316 for 2.6

comment:6   ryan4 years ago

  • Summary changed from Blogroll issue to Links not reassigned to default category after category deletion
Note: See TracTickets for help on using tickets.