Ticket #32495: 32495.5.patch
File 32495.5.patch, 2.1 KB (added by , 10 years ago) |
---|
-
wp-includes/admin-bar.php
833 833 'parent' => 'top-secondary', 834 834 'id' => 'search', 835 835 'title' => $form, 836 'wrapper' => 'div', 836 837 'meta' => array( 837 838 'class' => 'admin-bar-search', 838 839 'tabindex' => -1, -
wp-includes/class-wp-admin-bar.php
124 124 } 125 125 126 126 $defaults = array( 127 'id' => false, 128 'title' => false, 129 'parent' => false, 130 'href' => false, 131 'group' => false, 132 'meta' => array(), 127 'id' => false, 128 'title' => false, 129 'parent' => false, 130 'href' => false, 131 'group' => false, 132 'wrapper' => 'a', 133 'meta' => array(), 133 134 ); 134 135 135 136 // If the node already exists, keep any data that isn't provided. … … 503 504 endif; 504 505 ?>><?php 505 506 else: 506 ?><div class="ab-item ab-empty-item" <?php echo $aria_attributes; 507 if ( ! empty( $node->meta['title'] ) ) : 508 ?> title="<?php echo esc_attr( $node->meta['title'] ); ?>"<?php 507 if ( $node->wrapper != 'a' ): 508 ?><<?php echo esc_html( $node->wrapper ); ?> class="ab-item ab-empty-item" <?php echo $aria_attributes; 509 if ( ! empty( $node->meta['title'] ) ) : 510 ?> title="<?php echo esc_attr( $node->meta['title'] ); ?>"<?php 511 endif; 512 ?>><?php 513 else: 514 ?><a href="#wp-admin-bar-<?php esc_attr( $node->id ); ?>" class="ab-item ab-empty-item" <?php echo $aria_attributes; 515 if ( ! empty( $node->meta['title'] ) ) : 516 ?> title="<?php echo esc_attr( $node->meta['title'] ); ?>"<?php 517 endif; 518 ?>><?php 509 519 endif; 510 ?>><?php511 520 endif; 512 521 513 522 echo $node->title; 514 523 515 if ( $has_link ) : 524 if ( $node->wrapper != 'a' ) : 525 ?></<?php echo esc_html( $node->wrapper ); ?>><?php 526 else: 516 527 ?></a><?php 517 else:518 ?></div><?php519 528 endif; 520 529 521 530 if ( $is_parent ) :