Changeset 30393 for trunk/src/wp-admin/menu-header.php
- Timestamp:
- 11/19/2014 07:36:43 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/menu-header.php
r29206 r30393 53 53 $class = array(); 54 54 $aria_attributes = ''; 55 $aria_hidden = ''; 56 $is_separator = false; 55 57 56 58 if ( $first ) { … … 80 82 $img = $img_style = ''; 81 83 $img_class = ' dashicons-before'; 84 85 if ( false !== strpos( $class, 'wp-menu-separator' ) ) { 86 $is_separator = true; 87 } 82 88 83 89 /* … … 105 111 $title = wptexturize( $item[0] ); 106 112 107 echo "\n\t<li$class$id>"; 108 109 if ( false !== strpos( $class, 'wp-menu-separator' ) ) { 113 // hide separators from screen readers 114 if ( $is_separator ) { 115 $aria_hidden = ' aria-hidden="true"'; 116 } 117 118 echo "\n\t<li$class$id$aria_hidden>"; 119 120 if ( $is_separator ) { 110 121 echo '<div class="separator"></div>'; 111 122 } elseif ( $submenu_as_parent && ! empty( $submenu_items ) ) {
Note: See TracChangeset
for help on using the changeset viewer.