WordPress を使用していて、以下のCSSが全く使われていなかったので、消してみた。
https://www.nanigoto.net/wordpress/wp-includes/css/dashicons.min.css?ver=
すると、管理者として、ログインしている時だけ、レイアウトが崩れた。
なので、ログインしていない時だけ、このCSSを読み込まないように修正した。
以下のコードを function.php に追加。
if ( ! is_user_logged_in() ) {
add_action( 'wp_print_styles', 'my_deregister_styles', 100 );
function my_deregister_styles() {
//wp_deregister_style( 'amethyst-dashicons-style' );
wp_deregister_style( 'dashicons' );
}
}