Changeset 44793 for trunk/src/wp-includes/class-wp-admin-bar.php
- Timestamp:
- 03/04/2019 10:45:24 PM (7 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/class-wp-admin-bar.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-admin-bar.php
r44639 r44793 502 502 } 503 503 504 $is_parent = ! empty( $node->children ); 505 $has_link = ! empty( $node->href ); 504 $is_parent = ! empty( $node->children ); 505 $has_link = ! empty( $node->href ); 506 $is_root_top_item = 'root-default' === $node->parent; 507 $is_top_secondary_item = 'top-secondary' === $node->parent; 506 508 507 509 // Allow only numeric values, then casted to integers, and allow a tabindex value of `0` for a11y. … … 510 512 511 513 $menuclass = ''; 514 $arrow = ''; 512 515 513 516 if ( $is_parent ) { … … 518 521 if ( ! empty( $node->meta['class'] ) ) { 519 522 $menuclass .= $node->meta['class']; 523 } 524 525 // Print the arrow icon for the menu children with children. 526 if ( ! $is_root_top_item && ! $is_top_secondary_item && $is_parent ) { 527 $arrow = '<span class="wp-admin-bar-arrow" aria-hidden="true"></span>'; 520 528 } 521 529 … … 543 551 } 544 552 545 echo ">{$ node->title}";553 echo ">{$arrow}{$node->title}"; 546 554 547 555 if ( $has_link ) {
Note: See TracChangeset
for help on using the changeset viewer.