Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#52578 closed defect (bug) (duplicate)

Selecting item in Hierarchical Taxonomy causes items to move to the top

Reported by: aristotelisj's profile aristotelisj Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.6.1
Component: Taxonomy Keywords:
Focuses: Cc:

Description

I created a custom hierarchical taxonomy for Woo-commerce Products using a plugin called Custom post types.
I then proceeded to add 3 entries like so:
123
--1234
--1233

I then went to a product and proceeded to select entry 1234.
Upon saving the product, the selected entry was moved to the very top of the hierarchy outside its parent.

I will try to attach screenshot.

Attachments (1)

2021-02-20_04-53-07.png (374.5 KB) - added by aristotelisj 4 years ago.

Download all attachments as: .zip

Change History (2)

#1 @SergeyBiryukov
4 years ago

  • Component changed from Administration to Taxonomy
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Hi there, welcome to WordPress Trac! Thanks for the ticket.

Per the discussion in #10982, this is intentional behavior for the classic editor. A filter was added in [20710] / #20054, allowing plugins to change it. This plugin implements the change: Category Checklist Tree.

As noted in comment:1:ticket:38934, this is fixed in the block editor introduced with WordPress 5.0.

Note: See TracTickets for help on using tickets.