Ticket #26369: 26369.3.patch
File 26369.3.patch, 3.0 KB (added by , 10 years ago) |
---|
-
src/wp-admin/includes/misc.php
645 645 } 646 646 add_action('admin_head', '_ipad_meta'); 647 647 648 function _admin_font_face_test( $body_class ) { 649 if ( wp_is_mobile() && ! _font_face_support() ) { 650 if ( ! empty( $body_class ) ) 651 $body_class .= ' '; 652 653 $body_class .= 'no-font-face'; 654 } 655 656 return $body_class; 657 } 658 add_filter( 'admin_body_class', '_admin_font_face_test' ); 659 648 660 /** 649 661 * Check lock status for posts displayed on the Posts screen 650 662 * -
src/wp-includes/class-wp-admin-bar.php
353 353 $class .= ' ie9'; 354 354 } elseif ( wp_is_mobile() ) { 355 355 $class .= ' mobile'; 356 357 if ( ! _font_face_support() ) 358 $class .= ' no-font-face'; 356 359 } 357 360 358 361 ?> … … 449 452 450 453 echo $node->title; 451 454 455 if ( ! empty( $node->meta['title'] ) ) { 456 ?><span class="ab-label-hidden"><?php echo esc_html( $node->meta['title'] ); ?></span><?php 457 } 458 452 459 if ( $has_link ) : 453 460 ?></a><?php 454 461 else: -
src/wp-includes/css/admin-bar.css
679 679 background-image: none; 680 680 } 681 681 682 /* No @font-face support */ 683 #wpadminbar span.ab-label-hidden { 684 display: none; 685 } 682 686 687 #wpadminbar.no-font-face span.ab-label-hidden { 688 display: inline; 689 } 690 691 #wpadminbar.no-font-face ul.ab-top-menu > li > a.ab-item { 692 display: block; 693 width: 45px; 694 text-align: center; 695 overflow: hidden; 696 margin: 0 3px; 697 } 698 699 #wpadminbar.no-font-face #wp-admin-bar-my-sites > .ab-item, 700 #wpadminbar.no-font-face #wp-admin-bar-site-name > .ab-item, 701 #wpadminbar.no-font-face #wp-admin-bar-edit > .ab-item { 702 text-indent: 0; 703 } 704 705 #wpadminbar.no-font-face .ab-icon, 706 #wpadminbar.no-font-face .ab-icon:before, 707 #wpadminbar.no-font-face a.ab-item:before { 708 display: none !important; 709 } 710 711 #wpadminbar.no-font-face ul.ab-top-menu > li > a > span.ab-label { 712 display: none; 713 } 714 683 715 @media screen and ( max-width: 782px ) { 684 716 /* Toolbar Touchification*/ 685 717 html #wpadminbar { … … 1021 1053 #wpadminbar li#wp-admin-bar-updates { 1022 1054 display: none; 1023 1055 } 1024 } 1025 No newline at end of file 1056 } -
src/wp-includes/vars.php
139 139 140 140 return $is_mobile; 141 141 } 142 143 function _font_face_support() { 144 $pattern = '/Android (1.0|1.1|1.5|1.6|2.0|2.1)|Nokia|Opera Mini|' . 145 'w(eb)?OSBrowser|webOS|UCWEB|Windows Phone OS 7|XBLWP7|ZuneWP7/'; 146 147 if ( preg_match( $pattern, $_SERVER['HTTP_USER_AGENT'] ) ) 148 return false; 149 150 return true; 151 }