Opened 15 years ago
Closed 15 years ago
#12992 closed defect (bug) (fixed)
Custom Post Type with Custom Icon Retains Post Icon Ghost
Reported by: | wmrom | Owned by: | nacin |
---|---|---|---|
Milestone: | 3.0 | Priority: | low |
Severity: | normal | Version: | |
Component: | Posts, Post Types | Keywords: | post types, icons, admin menu |
Focuses: | Cc: |
Description
When I attach an icon to a custom post type in the latest 3.0beta1 version, the ghost of a 'post' icon was still visible. On hover, the 'ghost image' is covered by my icon, though I can see parts of it sticking out from the edges.
The problem is from the fact that the <li> item still had the 'menu-icon-posts' class, calling the posts background image, but slapping the new icon on top. It uses opacity to get the same effect that the other menu items get, hence the ghost image underneath it. I've fixed the problem and included the diff from wp-admin/menu.php, as well as screenshots.
Attachments (3)
Change History (6)
#2
@
15 years ago
- Owner set to nacin
- Status changed from new to accepted
Going to simplify it a little further and rename all of the classes to .menu-icon-(post|page) instead of posts/pages. Thus, we can simply use the post type name (sanitized). We've already renamed them from IDs this cycle, so nothing broken beyond what we've already broken.
I wonder if we should we add the IDs back in, in case a plugin is currently selecting them.
Diff file showing changes