在老版 WordPress(3.8 之前),后台管理菜单每个分类之间是有一条隔离线的,而现在却没有了,如果你还想要这条线可以把下边的代码放到当前主题的 functions.php 里:

/**
*WordPress 后台侧边菜单添加分割线
*/

function Bing_admin_separators(){

echo '<style type="text/css">#adminmenu li.wp-menu-separator {margin: 0;}.admin-color-fresh #adminmenu li.wp-menu-separator {background: #444;}.admin-color-midnight #adminmenu li.wp-menu-separator {background: #4a5258;}.admin-color-light #adminmenu li.wp-menu-separator {background: #c2c2c2;}.admin-color-blue #adminmenu li.wp-menu-separator {background: #3c85a0;}.admin-color-coffee #adminmenu li.wp-menu-separator {background: #83766d;}.admin-color-ectoplasm #adminmenu li.wp-menu-separator {background: #715d8d;}.admin-color-ocean #adminmenu li.wp-menu-separator {background: #8ca8af;}.admin-color-sunrise #adminmenu li.wp-menu-separator {background: #a43d39;}</style>';

}

add_action( 'admin_head', 'Bing_admin_separators' );

WordPress 后台侧边菜单添加分割线