Opened 21 months ago
Closed 17 months ago
#57946 closed defect (bug) (fixed)
Deprecated jQuery in Farbtastic
Reported by: | Malae | Owned by: | audrasjb |
---|---|---|---|
Milestone: | 6.3 | Priority: | normal |
Severity: | normal | Version: | 6.1.1 |
Component: | External Libraries | Keywords: | has-patch commit |
Focuses: | javascript | Cc: |
Description (last modified by )
jQuery.fn.mousedown()
event shorthand is deprecated in /wp-admin/js/farbtastic.js
jQuery.fn.bind()
is deprecated in /wp-admin/js/farbtastic.js
Attachments (2)
Change History (25)
#1
@
21 months ago
- Component changed from Shortcodes to External Libraries
- Description modified (diff)
- Focuses javascript added
- Summary changed from Deprecated jQuery to Deprecated jQuery in Farbtastic
#2
@
21 months ago
- Milestone changed from Awaiting Review to 6.3
The upstream repository has been archived by the owner on Feb 27, 2019, and is now read-only.
Looks like this will now be an "adopted" library, and can be patched with necessary changes.
#3
@
19 months ago
Farbtastic itself is long dead. But it still is to find in the Twenty Eleven Theme and some remnants are still to find in Core. Instead of patching it, we should completely get rid of it, I'd say.
This ticket was mentioned in PR #4626 on WordPress/wordpress-develop by @mrinal013.
18 months ago
#4
- Keywords has-patch added
Trac ticket: 57946
#5
@
18 months ago
I don't think it's possible to remove the library as it's used by many plugins (a few false positives in there) and quite a few themes.
One of the true positives is CMB2 which is used by many more sites than the install count suggests as it's often included as a package within client project themes and/or plugins.
As the library is already considered adopted by core, it's fine to modify the files in the pull request.
#6
@
17 months ago
- Milestone changed from 6.3 to 6.4
If we cannot remove this library, we need to adopt it and this ticket needs a new patch. Due to this, I am moving this into the 6.4 milestone.
#7
@
17 months ago
- Keywords needs-testing added
I just change some code of the core Farbtastic.js library. So further testing
is required.
#8
@
17 months ago
- Milestone changed from 6.4 to 6.3
Because patch is now ready for testing and this ticket was in 6.3 milestone, I am returning it to this milestone.
@mrinal013 commented on PR #4626:
17 months ago
#9
Reopen PR
@mrinal013 commented on PR #4626:
17 months ago
#10
Reopen PR
@mrinal013 commented on PR #4626:
17 months ago
#11
Reopen PR
This ticket was mentioned in PR #4811 on WordPress/wordpress-develop by @mrinal013.
17 months ago
#12
Trac ticket: https://core.trac.wordpress.org/ticket/57946
This ticket was mentioned in Slack in #core-test by mrinal. View the logs.
17 months ago
#15
@
17 months ago
- Keywords reporter-feedback needs-dev-note removed
Removed need-dev-note
and reporter-feedback
. Because I think they are not appropriate now.
#16
follow-up:
↓ 17
@
17 months ago
Note: I did not test the patch. I simply reduced the changes, mainly so it's easier to review.
#17
in reply to:
↑ 16
@
17 months ago
Replying to sabernhardt:
Note: I did not test the patch. I simply reduced the changes, mainly so it's easier to review.
Thanks.
In https://core.trac.wordpress.org/attachment/ticket/57946/57946.patch, I did somehow similar changes as https://core.trac.wordpress.org/attachment/ticket/57946/57946.1.patch. Additionally, in https://core.trac.wordpress.org/attachment/ticket/57946/57946.patch,
- Following coding standard, added with wp-prettier.
- Use
navigator.userAgent
instead ofnavigator.appVersion
, sincenavigator.appVersion
is not recommended https://developer.mozilla.org/en-US/docs/Web/API/Navigator/appVersion.
#18
follow-up:
↓ 19
@
17 months ago
Following coding standard, added with wp-prettier.
This adds alot of unnecessary changes which are harder to review and also mean that if fabrasic ever comes back from the dead, it would really hard to upstream these changes.
#19
in reply to:
↑ 18
@
17 months ago
Replying to jorbin:
Following coding standard, added with wp-prettier.
This adds alot of unnecessary changes which are harder to review and also mean that if fabrasic ever comes back from the dead, it would really hard to upstream these changes.
Like this idea.
Also, tested the patch: https://core.trac.wordpress.org/attachment/ticket/57946/57946.1.patch
It works ok on my end.
Thanks for the report!
Usually, external library issues should be reported upstream, but the Farbtastic GitHub repo does not have recent activity.
This script was moved to the
js
folder in [43309], though the most recent content change was [16305].