Skip to content

Commit 855cbd9

Browse files
authored
Admin bar: Add CSS to hide icons in "Edit" submenu (#705)
Fixes WordPress/wordcamp.org#1259
1 parent 9150364 commit 855cbd9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

mu-plugins/blocks/global-header-footer/admin-bar.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
/* Actions & filters */
1010
add_action( 'admin_bar_menu', __NAMESPACE__ . '\filter_admin_bar_links', 10000 ); // 10000 to run after all items are added to the menu.
1111
add_filter( 'show_admin_bar', __NAMESPACE__ . '\should_show_admin_bar' );
12+
add_action( 'wp_enqueue_scripts', __NAMESPACE__ . '\enqueue_inline_css' );
1213

1314
/**
1415
* Hide the admin bar for logged out users.
@@ -139,3 +140,10 @@ function filter_admin_bar_links( $wp_admin_bar ) {
139140
}
140141
}
141142
}
143+
144+
function enqueue_inline_css() {
145+
wp_add_inline_style(
146+
'admin-bar',
147+
'#wpadminbar #wp-admin-bar-edit-actions .ab-item::before { content: "" !important; }'
148+
);
149+
}

0 commit comments

Comments
 (0)