Changeset 39147 for trunk/src/wp-includes/class-wp-admin-bar.php
- Timestamp:
- 11/05/2016 04:27:13 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-admin-bar.php
r38984 r39147 475 475 return; 476 476 477 $is_parent = ! empty( $node->children ); 478 $has_link = ! empty( $node->href ); 479 $is_root_top_item = 'root-default' === $node->parent; 480 $is_top_secondary_item = 'top-secondary' === $node->parent; 477 $is_parent = ! empty( $node->children ); 478 $has_link = ! empty( $node->href ); 481 479 482 480 // Allow only numeric values, then casted to integers, and allow a tabindex value of `0` for a11y. … … 484 482 $aria_attributes = ( '' !== $tabindex ) ? ' tabindex="' . $tabindex . '"' : ''; 485 483 486 $menuclass = $arrow_right ='';484 $menuclass = ''; 487 485 488 486 if ( $is_parent ) { 489 487 $menuclass = 'menupop '; 490 488 $aria_attributes .= ' aria-haspopup="true"'; 491 }492 493 // Print the right arrow icon for the primary menu children with children.494 if ( ! $is_root_top_item && ! $is_top_secondary_item && $is_parent ) {495 $arrow_right = '<span class="wp-admin-bar-arrow-right" aria-hidden="true"></span>';496 489 } 497 490 … … 540 533 endif; 541 534 542 echo $ arrow_right . $node->title;535 echo $node->title; 543 536 544 537 if ( $has_link ) :
Note: See TracChangeset
for help on using the changeset viewer.