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