[wp-trac] [WordPress Trac] #52012: Bundle jQuery plugin temporarily to encourage adoption of auto-updates
WordPress Trac
noreply at wordpress.org
Fri Dec 11 12:08:05 UTC 2020
#52012: Bundle jQuery plugin temporarily to encourage adoption of auto-updates
-----------------------------+------------------------------
Reporter: carike | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Upgrade/Install | Version: 5.5
Severity: normal | Resolution:
Keywords: | Focuses: javascript
-----------------------------+------------------------------
Changes (by apedog):
* version: => 5.5
Comment:
+1 for this.
I'll only add that I don't think Core should delete the plugin. Maybe a
deactivation through site-health would be more reasonable. Number of admin
log-ins seems like an arbitrary choice.
In addition, in the interest of upholding backward-compatibility
philosophy as much as possible, I think we should consider polyfilling
some jQuery functions indefinitely by core.
Case in point: https://api.jquery.com/andSelf/
> Note: This API has been removed in jQuery 3.0; use .addBack() instead,
which should work identically.
There are no security implications for adding a wrapper function. This is
essentially syntax sugar.
This could mean WordPress would support non-standard jQuery so YMMV. I
don't have a strong opinion on this myself - bc-compatibility vs.
"correct" jQuery syntax - but this will mitigate a lot of bc-incompatible
breakage.
I believe this plugin should have been bundled with WordPress as far back
as 5.5, and if this feature is adopted, I believe the inclusion should be
backported to 5.5.x
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52012#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list