WordPress.org

Make WordPress Core

Ticket #20036: 20036-custom-icon-switch.diff

File 20036-custom-icon-switch.diff, 2.2 KB (added by DrewAPicture, 6 years ago)

Adds menu-icon-custom

  • wp-admin/menu.php

     
    9999                $ptype_class = $ptype_for_id;
    100100        } else {
    101101                $menu_icon   = 'div';
    102                 $ptype_class = 'post';
     102                $ptype_class = 'custom';
    103103        }
    104104
    105105        // if $ptype_menu_position is already populated or will be populated by a hard-coded value below, increment the position.
  • wp-admin/css/colors-classic.dev.css

     
    14701470        background: transparent url('../images/menu-vs.png?ver=20111128') no-repeat scroll -30px -1px;
    14711471}
    14721472
     1473.icon16.icon-custom,
     1474#adminmenu .menu-icon-custom div.wp-menu-image {
     1475        background: transparent url('../images/menu-vs.png?ver=20111128') no-repeat scroll -390px -33px;
     1476}
     1477
     1478#adminmenu .menu-icon-custom:hover div.wp-menu-image,
     1479#adminmenu .menu-icon-custom.wp-has-current-submenu div.wp-menu-image {
     1480        background: transparent url('../images/menu-vs.png?ver=20111128') no-repeat scroll -390px -1px;
     1481}
     1482
    14731483.icon16.icon-appearance,
    14741484#adminmenu .menu-icon-appearance div.wp-menu-image {
    14751485        background: transparent url('../images/menu-vs.png?ver=20111128') no-repeat scroll 0 -33px;
  • wp-admin/css/colors-fresh.dev.css

     
    11621162        background: transparent url('../images/menu.png?ver=20120201') no-repeat scroll -30px -1px;
    11631163}
    11641164
     1165.icon16.icon-custom,
     1166#adminmenu .menu-icon-custom div.wp-menu-image {
     1167        background: transparent url('../images/menu.png?ver=20120201') no-repeat scroll -390px -33px;
     1168}
     1169
     1170#adminmenu .menu-icon-custom:hover div.wp-menu-image,
     1171#adminmenu .menu-icon-custom.wp-has-current-submenu div.wp-menu-image {
     1172        background: transparent url('../images/menu.png?ver=20120201') no-repeat scroll -390px -1px;
     1173}
     1174
    11651175.icon16.icon-appearance,
    11661176#adminmenu .menu-icon-appearance div.wp-menu-image {
    11671177        background: transparent url('../images/menu.png?ver=20120201') no-repeat scroll 0 -33px;