[wp-trac] [WordPress Trac] #62504: Checking "Uncategorized" category adds all categories with an ID starting with 1
WordPress Trac
noreply at wordpress.org
Fri Jan 17 09:08:34 UTC 2025
#62504: Checking "Uncategorized" category adds all categories with an ID starting
with 1
-------------------------------------------------+-------------------------
Reporter: ffffelix | Owner: azaozz
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.7.2
Component: Editor | Version: 6.7.1
Severity: normal | Resolution: fixed
Keywords: has-patch has-testing-info fixed- | Focuses: javascript
major dev-reviewed |
-------------------------------------------------+-------------------------
Comment (by dhanendran):
The latest patch doesn't seem to be fixing it as well. It uses the
incomplete selectors. Id for the checkbox and li is in the format of
{id}-1 or {id}-2. So we need to consider the last number as well.
We need to use below selector to fix this.
{{{
$('input#in-' + taxonomy + '-' + id + '-1' + ', input[id^="in-' + taxonomy
+ '-' + id + '-2"]')
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62504#comment:42>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list