Opened 3 years ago
Closed 3 years ago
#14959 closed enhancement (fixed)
Pass post type as class to screen_icon()
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 3.1 |
| Component: | Post Types | Version: | 3.0.1 |
| Severity: | normal | Keywords: | dev-feedback has-patch |
| Cc: | jeff@… |
Description
Just like we are able to set custom icons for post types in the admin menu via CSS by using the #menu-posts-{post_type}, we should be able to do the same for screen_icon(). The post type should be passed as a class, along with icon32. Perhaps "icon32-{post_type}".
Attachments (1)
Change History (4)
jfarthing84 — 3 years ago
- Milestone changed from Awaiting Review to 3.1
- Owner set to nacin
- Status changed from new to reviewing
Note: See
TracTickets for help on using
tickets.

(In [15661]) Add a post type class to screen icons. props jfarthing84 for initial patch. see #14959.