[wp-trac] [WordPress Trac] #61252: Select-all checkbox is checked when selecting individual users, plugins, etc. (was: Getting issue in user section in selecting few users but all user checkbox is selected)
WordPress Trac
noreply at wordpress.org
Mon May 20 16:17:15 UTC 2024
#61252: Select-all checkbox is checked when selecting individual users, plugins,
etc.
-----------------------------+---------------------------------------------
Reporter: dhaval_parikh | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.6
Component: Quick/Bulk Edit | Version: 6.5.3
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: ui, javascript, administration
-----------------------------+---------------------------------------------
Changes (by sabernhardt):
* keywords: => needs-patch
* focuses: ui, accessibility, javascript => ui, javascript, administration
* component: Users => Quick/Bulk Edit
* milestone: Awaiting Review => 6.6
Comment:
I experience the same behavior in Users, Plugins, Comments, Media, and
Updates list tables (but not Posts or Pages) with WordPress 6.5.3.
This seems related to [57745], and the script may need a condition to
verify that the table has rows with the `iedit` class:
{{{
if ( $(this).closest('tbody').find('tr.iedit').length ) {
var unchecked =
$(this).closest('tbody').find('tr.iedit').find(':checkbox').filter(':visible:enabled').not(':checked');
} else {
var unchecked =
$(this).closest('tbody').find(':checkbox').filter(':visible:enabled').not(':checked');
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61252#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list