[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
Mon Apr 29 16:26:07 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:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Toolbar       |     Version:  5.0
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  accessibility, javascript
--------------------------+----------------------------------------

Comment (by afercia):

 One more thing to consider: the admin bar is rendered in the footer since
 (if I'm not wrong) its introduction in [15671]. Not sure why it's also
 moved with JS, see ticket:14772#comment:71 and see `d.body.appendChild( aB
 )` in the `admin-bar.js` file.

 Regardless, WordPress 5.2 is going to introduce the new `wp_body_open`
 hook. For the future, it would be worth considering to move the admin bar
 at the top of the markup, to make the visual order match the DOM order.
 See also #47053.

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


More information about the wp-trac mailing list