Ticket #33513: 33513.2.diff
File 33513.2.diff, 1.6 KB (added by , 9 years ago) |
---|
-
class-wp-admin-bar.php
101 101 * @type string $parent Optional. ID of the parent node. 102 102 * @type string $href Optional. Link for the item. 103 103 * @type bool $group Optional. Whether or not the node is a group. Default false. 104 * @type array $meta Meta data including the following keys: 'html', 'class', 'rel', 104 * @type array $meta Meta data including the following keys: 'html', 'class', 'rel', 'lang', 'dir', 105 105 * 'onclick', 'target', 'title', 'tabindex'. Default empty. 106 106 * } 107 107 */ … … 501 501 if ( ! empty( $node->meta['rel'] ) ) : 502 502 ?> rel="<?php echo esc_attr( $node->meta['rel'] ); ?>"<?php 503 503 endif; 504 if ( ! empty( $node->meta['lang'] ) ) : 505 ?> lang="<?php echo esc_attr( $node->meta['lang'] ); ?>"<?php 506 endif; 507 if ( ! empty( $node->meta['dir'] ) ) : 508 ?> dir="<?php echo esc_attr( $node->meta['dir'] ); ?>"<?php 509 endif; 504 510 ?>><?php 505 511 else: 506 512 ?><div class="ab-item ab-empty-item" <?php echo $aria_attributes; … … 507 513 if ( ! empty( $node->meta['title'] ) ) : 508 514 ?> title="<?php echo esc_attr( $node->meta['title'] ); ?>"<?php 509 515 endif; 516 if ( ! empty( $node->meta['lang'] ) ) : 517 ?> lang="<?php echo esc_attr( $node->meta['lang'] ); ?>"<?php 518 endif; 519 if ( ! empty( $node->meta['dir'] ) ) : 520 ?> dir="<?php echo esc_attr( $node->meta['dir'] ); ?>"<?php 521 endif; 510 522 ?>><?php 511 523 endif; 512 524