[wp-trac] [WordPress Trac] #47069: Twenty Nineteen: the admin bar on the front end has reduced functionalities and bugs due to jQuery not being used
WordPress Trac
noreply at wordpress.org
Tue Oct 8 17:18:19 UTC 2019
#47069: Twenty Nineteen: the admin bar on the front end has reduced functionalities
and bugs due to jQuery not being used
-------------------------------------+-------------------------------------
Reporter: afercia | Owner: audrasjb
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 5.3
Component: Toolbar | Version: 5.0
Severity: normal | Resolution:
Keywords: has-screenshots has- | Focuses: accessibility,
patch commit | javascript
-------------------------------------+-------------------------------------
Comment (by afercia):
In [changeset:"46440" 46440]:
{{{
#!CommitTicketReference repository="" revision="46440"
Accessibility: Script Loader: Add jQuery as dependency of `admin-bar`.
On the front end, themes that don't use jQuery make the admin bar fallback
to the non-jQuery implementation. Some important features miss from the
non-jQuery `admin-bar.js` part, for example `hoverintent` and, most
importantly, the touch events for the mobile menu don't work at all.
Enqueueing jQuery is the simplest option for now. For the future, a
complete rewriting of `admin-bar.js` in plain JavaScript is highly
recommended.
See #47069.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47069#comment:37>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list