Skip to content

Commit e5fb0da

Browse files
committed
code quality: remove always-true ternary from _wp_menu_object()
1 parent 6164a8c commit e5fb0da

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wp-admin/menu-header.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ function _wp_menu_output( $menu, $submenu, $submenu_as_parent = true ) {
111111
$class[] = esc_attr( $item[4] );
112112
}
113113

114-
$class = $class ? ' class="' . implode( ' ', $class ) . '"' : '';
114+
$class = ' class="' . implode( ' ', $class ) . '"';
115115
$id = ! empty( $item[5] ) ? ' id="' . preg_replace( '|[^a-zA-Z0-9_:.]|', '-', $item[5] ) . '"' : '';
116116
$img = '';
117117
$img_style = '';

0 commit comments

Comments
 (0)