This diff removes the arrow icon from the WordPress admin menu. Let'… #8016
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
…s break down the changes:
src/wp-admin/menu-header.php
: The primary change is the removal of the$arrow
variable and its inclusion in the menu item's HTML. Every instance of$arrow
within the<a>
tag has been deleted. This directly removes the arrow element from the rendered output.src/wp-admin/css/admin-menu.css
: The CSS changes further support the removal of the arrow. The rules related to.wp-menu-arrow
are removed. Specifically:#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu, #adminmenu li.current a.menu-top, #adminmenu .wp-menu-arrow, #adminmenu .wp-has-current-submenu .wp-submenu .wp-submenu-head, #adminmenu .wp-menu-arrow div
is changed to remove.wp-menu-arrow
and.wp-menu-arrow div
. This removes styling for the arrow itself and for parent menu items./* A new arrow */
comment block and the following.wp-menu-arrow
style block, which hid the arrow (display: none !important;
), is completely deleted. Since the arrow element is no longer present in the HTML, these styles are unnecessary.In summary, these changes effectively delete the arrow that typically appears next to WordPress admin menu items that have submenus. The HTML generating the arrow is removed, and the corresponding CSS styling is deleted. This results in a cleaner, more minimalist look for the admin menu.
Trac ticket: https://core.trac.wordpress.org/ticket/26960