Ticket #26369: 26369.2.patch
File 26369.2.patch, 1.5 KB (added by , 12 years ago) |
---|
-
src/wp-admin/includes/misc.php
633 633 } 634 634 add_action('admin_head', '_ipad_meta'); 635 635 636 function _admin_font_face_test( $body_class ) { 637 if ( wp_is_mobile() && ! _font_face_support() ) { 638 if ( ! empty( $body_class ) ) 639 $body_class .= ' '; 640 641 $body_class .= 'no-font-face'; 642 } 643 644 return $body_class; 645 } 646 add_filter( 'admin_body_class', '_admin_font_face_test' ); 647 636 648 /** 637 649 * Check lock status for posts displayed on the Posts screen 638 650 * -
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 ?> -
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 }