#22333 closed enhancement (fixed)
Add IDs to .misc-pub-section divs in meta-boxes.php
Reported by: | nofearinc | Owned by: | helen |
---|---|---|---|
Milestone: | 3.7 | Priority: | normal |
Severity: | normal | Version: | 3.4 |
Component: | Administration | Keywords: | 3.7-early has-patch commit |
Focuses: | Cc: |
Description
In wp-admin/includes/meta-boxes.php
the post_submit_meta_box
has several sections with class .misc-pub-section. Should you have to style/alter any of them, it's not consistent as:
- first div has only
class="misc-pub-section"
- second div has
class="misc-pub-section" id="visibility"
- third div has
class="misc-pub-section curtime"
Since this is a unique box on the screen, I've added two more IDs to div blocks 1 and 3 to allow for easier styling changes.
Attachments (3)
Change History (12)
#3
@
11 years ago
Would be nice to just give these descriptive classes. IDs aren't really a necessity.
Also, there's a new .misc-pub-section in core.
#5
@
11 years ago
Updated the patch with classes for all pub sections. I've used the misc-pub
prefix for consistency across all boxes similarly to the misc-pub-section
class name itself.
Note: See
TracTickets for help on using
tickets.
meta-boxes.php patch for IDs