AdvancedCustomFields / acf

Advanced Custom Fields
http://advancedcustomfields.com/
877 stars 182 forks source link

Fix jQuery deprecations #916

Open nlemoine opened 6 months ago

nlemoine commented 6 months ago

Describe the bug

My browser console is really cluttered with jQuery migrate deprecation warnings which is really not nice when developing. Most of them belongs to ACF scripts.

To Reproduce Steps to reproduce the behavior:

  1. Edit a post on the block editor
  2. Open your devtools
  3. Select the "console" tab
  4. Look for your console.log between hundred of lines of deprecation warnings

Expected behavior

No deprecations.

Version Information:

Additional context

Most of those deprecations are really easy to fix. It seems to be mostly event related functions like .keypress() -> .on('keypress'), etc.

Your are developers too, I'm pretty sure you can understand how annoying this can be 🙏

mattgrshaw commented 6 months ago

Hi @nlemoine, thanks for the report.

I'm pretty sure you can understand how annoying this can be 🙏

Definitely! We'll get this fixed up in a future release.