[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 19:27:43 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):

 > That's why the admin bar js has a fall-back mode to work without jQuery.
 Ideally this mode should be fixed

 I think we all agree on this point. That's the reason why all the
 prevalent opinion on this ticket is that the best option is to refactor
 `admin-bar.js` in plain JavaScript and adding the "enhancements" that
 currently work only in the jQuery part. Most notably: `hoverintent` and
 the admin bar menu touch events on mobile. There is an initial patch from
 @dinhtungdu that hasn't been reviewed yet. I also have to note the
 complete lack of feedback from the `toolbar` component maintainers for the
 entire life of this ticket. This isn't greatly helpful.

 Regardless, worth noting again that with Twenty Twenty the admin bar on
 the front end will be broken, much like it has been broken with twenty
 Nineteen for a year or so and with all the themes that don't use jQuery
 since forever. Honestly, this doesn't seem the best service WordPress can
 offer to users.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/47069#comment:39>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list