Make WordPress Core

Opened 8 months ago

Last modified 8 months ago

#61409 new defect (bug)

JQMIGRATE warnings for bulk edit

Reported by: siliconforks's profile siliconforks Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 6.5.4
Component: Quick/Bulk Edit Keywords: has-patch
Focuses: Cc:

Description

When using the "bulk edit" functionality for posts (or pages), I'm seeing two warnings in the browser console:

JQMIGRATE: jQuery.fn.click() event shorthand is deprecated
JQMIGRATE: jQuery.fn.focus() event shorthand is deprecated

(You may need to define SCRIPT_DEBUG to true to see these.)

Also, when I remove one of the posts/pages from the bulk edit form (by clicking on the circular "x" icon), I get another focus warning.

Attachments (1)

61409.diff (1.2 KB) - added by siliconforks 8 months ago.

Download all attachments as: .zip

Change History (5)

@siliconforks
8 months ago

#1 @khokansardar
8 months ago

  • Keywords has-patch added

This ticket was mentioned in Slack in #core-test by z1ang. View the logs.


8 months ago

#3 @z1ang
8 months ago

Reproduction Report

This report validates that the issue can be reproduced.

Environment

  • OS: macOS 14.5
  • Web Server: Nginx
  • PHP: 8.3.6
  • WordPress: 6.5.4, 6.6
  • Browser: Chrome 125.0.6422.142
  • Theme: Twenty Twenty-Four
  • Active Plugins: None

Actual Results

  • ✅ Error condition occurs (reproduced).

Additional Notes

  • Step 1: Go to WP admin dashboard
  • Step 2: Click pages
  • Step 3: Select multiple elements and choose "Edit" from bulk actions and then click on "Apply"
  • Step 4: In the browser console you will be able to see the warnings:

JQMIGRATE: jQuery.fn.click() event shorthand is deprecated
JQMIGRATE: jQuery.fn.focus() event shorthand is deprecated

This ticket was mentioned in PR #6849 on WordPress/wordpress-develop by @anujrathore24.


8 months ago
#4

---
## PR Description
This PR is to resolve warnings a user will get on their browsers console for deprecated use of click and focus functions in jQuery when bulk editing.

### Steps to reproduce these warnings
Step 1: Go to WP admin dashboard
Step 2: Click pages
Step 3: Select multiple elements and choose "Edit" from bulk actions and then click on "Apply"
Step 4: In the browser console you will be able to see the warnings:

### Warnings on Console

https://github.com/WordPress/wordpress-develop/assets/80690679/b963bd50-535f-40c9-9b89-c8eb5603b6cf

---

Note: See TracTickets for help on using tickets.