Changeset 38468 for trunk/src/wp-includes/class-wp-admin-bar.php
- Timestamp:
- 08/31/2016 03:21:04 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-admin-bar.php
r38467 r38468 392 392 393 393 /** 394 * 395 * @global bool $is_IE 394 396 * @param object $root 395 397 */ 396 398 final protected function _render( $root ) { 399 global $is_IE; 400 397 401 // Add browser classes. 398 402 // We have to do this here since admin bar shows on the front end. 399 403 $class = 'nojq nojs'; 400 if ( wp_is_IE()) {401 if ( strpos( $_SERVER['HTTP_USER_AGENT'], 'MSIE 7' ) ) {404 if ( $is_IE ) { 405 if ( strpos( $_SERVER['HTTP_USER_AGENT'], 'MSIE 7' ) ) 402 406 $class .= ' ie7'; 403 } elseif ( strpos( $_SERVER['HTTP_USER_AGENT'], 'MSIE 8' ) ) {407 elseif ( strpos( $_SERVER['HTTP_USER_AGENT'], 'MSIE 8' ) ) 404 408 $class .= ' ie8'; 405 } elseif ( strpos( $_SERVER['HTTP_USER_AGENT'], 'MSIE 9' ) ) {409 elseif ( strpos( $_SERVER['HTTP_USER_AGENT'], 'MSIE 9' ) ) 406 410 $class .= ' ie9'; 407 }408 411 } elseif ( wp_is_mobile() ) { 409 412 $class .= ' mobile';
Note: See TracChangeset
for help on using the changeset viewer.