Changeset 21193
- Timestamp:
- 06/30/2012 11:47:21 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-wp-admin-bar.php
r20417 r21193 238 238 if ( $node->type == 'group' ) { 239 239 if ( empty( $node->meta['class'] ) ) 240 $node->meta['class'] = ''; 241 $node->meta['class'] .= ' ' . $group_class; 240 $node->meta['class'] = $group_class; 241 else 242 $node->meta['class'] .= ' ' . $group_class; 242 243 } 243 244 … … 368 369 return; 369 370 370 $class = empty( $node->meta['class'] ) ? '' : $node->meta['class']; 371 372 ?><ul id="<?php echo esc_attr( 'wp-admin-bar-' . $node->id ); ?>" class="<?php echo esc_attr( $class ); ?>"><?php 371 if ( ! empty( $node->meta['class'] ) ) 372 $class = ' class="' . esc_attr( trim( $node->meta['class'] ) ) . '"'; 373 else 374 $class = ''; 375 376 ?><ul id="<?php echo esc_attr( 'wp-admin-bar-' . $node->id ); ?>"<?php echo $class; ?>><?php 373 377 foreach ( $node->children as $item ) { 374 378 $this->_render_item( $item ); … … 390 394 391 395 if ( $is_parent ) { 392 $menuclass = 'menupop ';396 $menuclass = 'menupop '; 393 397 $aria_attributes .= ' aria-haspopup="true"'; 394 398 } 395 399 396 400 if ( ! empty( $node->meta['class'] ) ) 397 $menuclass .= ' ' . $node->meta['class']; 401 $menuclass .= $node->meta['class']; 402 403 if ( $menuclass ) 404 $menuclass = ' class="' . esc_attr( trim( $menuclass ) ) . '"'; 398 405 399 406 ?> 400 407 401 <li id="<?php echo esc_attr( 'wp-admin-bar-' . $node->id ); ?>" class="<?php echo esc_attr( $menuclass ); ?>"><?php408 <li id="<?php echo esc_attr( 'wp-admin-bar-' . $node->id ); ?>"<?php echo $menuclass; ?>><?php 402 409 if ( $has_link ): 403 410 ?><a class="ab-item" <?php echo $aria_attributes; ?> href="<?php echo esc_url( $node->href ) ?>"<?php
Note: See TracChangeset
for help on using the changeset viewer.