Make WordPress Core

Opened 7 months ago

Closed 7 months ago

Last modified 7 months ago

#61252 closed defect (bug) (duplicate)

Select-all checkbox is checked when selecting individual users, plugins, etc.

Reported by: dhaval_parikh's profile dhaval_parikh Owned by:
Milestone: Priority: normal
Severity: normal Version: 6.5.3
Component: Quick/Bulk Edit Keywords:
Focuses: ui, javascript, administration Cc:

Description

When I select a single user all user checkbox is selected, all user checkbox only selected when all users are selected.

I am attaching video link for the same : https://www.awesomescreenshot.com/video/27835734?key=ad197d8311f1757a1c574622986f2214

Attachments (1)

Users ‹ WP Migrate — WordPress (1).mp4 (280.6 KB) - added by dhaval_parikh 7 months ago.
Admin user multi select issue

Download all attachments as: .zip

Change History (5)

@dhaval_parikh
7 months ago

Admin user multi select issue

#1 @sabernhardt
7 months ago

  • Component changed from Users to Quick/Bulk Edit
  • Focuses administration added; accessibility removed
  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to 6.6
  • Summary changed from Getting issue in user section in selecting few users but all user checkbox is selected to Select-all checkbox is checked when selecting individual users, plugins, etc.

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');
		}

#2 @sabernhardt
7 months ago

@dhaval_parikh Hi and welcome to WordPress Core Trac!

#3 @swapnilghone9
7 months ago

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

Duplicate of #61168.

This is the same issue as reported in
https://core.trac.wordpress.org/ticket/61168

#4 @sabernhardt
7 months ago

  • Keywords needs-patch removed
  • Milestone 6.6 deleted

Thanks!

Note: See TracTickets for help on using tickets.