[wp-trac] [WordPress Trac] #37200: Add wrappers with IDs to user-edit.php

WordPress Trac noreply at wordpress.org
Mon Jun 27 17:51:34 UTC 2016


#37200: Add wrappers with IDs to user-edit.php
--------------------------------+-----------------------------
 Reporter:  TeemuSuoranta       |      Owner:
     Type:  enhancement         |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  Users               |    Version:  trunk
 Severity:  normal              |   Keywords:
  Focuses:  ui, administration  |
--------------------------------+-----------------------------
 The HTML markup of the user edit screen has been missing some classes and
 IDs that would make it easier to hide different sections. An earlier patch
 #29348 introduced ids for the `<tr>` elements but there is still more to
 do.

 The different sections have all `<h2>` headings and `<table class="form-
 table">` tables. It's hard to select these sections with CSS or JS because
 there is no identifiers. To take the initiative from #29348 to a bit
 further, I would add wrapper `<div>` elements to these sections.

 I used following naming:
 Section title: `Additional Capabilities`
 Section wrapper id: `user-additional-capabilities-section`

 This way, the naming is simalar to the `<tr>` wrappers (like "user-
 capabilities-wrap") but has it's own logic that separates these two.

 This patch makes it easy to hide the title of a section or hide the whole
 table of chosen section.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37200>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list