Make WordPress Core

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#28196 closed enhancement (fixed)

Add classes to form containers on edit-tags.php

Reported by: jarednova's profile jarednova Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: 4.1 Priority: normal
Severity: normal Version: 3.9
Component: Taxonomy Keywords: has-patch
Focuses: ui, administration Cc:


If a user wants to suppress or modify the containers of form fields on the tags page, there's no reliable way to do so without resorting to jQuery manipulation.

For example, I want to hide the default "description" box from the admin for a particular taxonomy. By adding a few classes, WordPress can give the themer ultimate control over what gets displayed in the admin.

Right now, all of these divs are simply ...

<div class="form-field">

This diff adds info so that these wrappers can be individually styled/controlled/suppressed..

<div class="form-field term-slug-wrap">

Attachments (1)

edit-tags-classes.txt (4.2 KB) - added by jarednova 10 years ago.
Git diff for adding classes to edit-tags.php

Download all attachments as: .zip

Change History (8)

10 years ago

Git diff for adding classes to edit-tags.php

#1 @jarednova
10 years ago

... I'm totally open to finding a better class naming system, consider this a first pass. Thanks!

#2 @voldemortensen
10 years ago

  • Keywords has-patch added

#3 @jarednova
10 years ago

I've added #29348 as a companion ticket to apply the same wrapper methodology to user-edit.php

#4 @jarednova
10 years ago

... and a quick screenshot to illustrate the effect this has on the markup:

#5 @SergeyBiryukov
10 years ago

  • Component changed from Administration to Taxonomy
  • Focuses ui added
  • Milestone changed from Awaiting Review to 4.1

#6 @SergeyBiryukov
10 years ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

In 29803:

Add classes to form containers on taxonomy screens.

props jarednova.
fixes #28196.

#7 @jarednova
10 years ago

Thanks @SergeyBiryukov -- my first addition to core. Really proud to make it in!

Note: See TracTickets for help on using tickets.