Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#14959 closed enhancement (fixed)

Pass post type as class to screen_icon()

Reported by: jfarthing84's profile jfarthing84 Owned by: nacin's profile nacin
Milestone: 3.1 Priority: normal
Severity: normal Version: 3.0.1
Component: Posts, Post Types Keywords: dev-feedback has-patch
Focuses: Cc:

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)

template.php.diff (574 bytes) - added by jfarthing84 14 years ago.

Download all attachments as: .zip

Change History (4)

#1 @nacin
14 years ago

  • Milestone changed from Awaiting Review to 3.1
  • Owner set to nacin
  • Status changed from new to reviewing

#2 @nacin
14 years ago

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

#3 @nacin
14 years ago

  • Resolution set to fixed
  • Status changed from reviewing to closed

(In [15664]) Apply [15661] to the edit-tags.php screens. fixes #14959. see #14886 for current_screen.

Note: See TracTickets for help on using tickets.