Make WordPress Core

Ticket #26369: 26369.patch

File 26369.patch, 853 bytes (added by azaozz, 10 years ago)
  • src/wp-admin/includes/misc.php

     
    633633}
    634634add_action('admin_head', '_ipad_meta');
    635635
     636function _mobile_font_face_test() {
     637        if ( wp_is_mobile() ) {
     638                ?>
     639                <script type="text/javascript">
     640                ( function() {
     641                        var ua = navigator.userAgent || '',
     642                                de = document.documentElement;
     643
     644                        if ( de && /(Android (1.0|1.1|1.5|1.6|2.0|2.1))|(Nokia)|(Opera Mini)|(w(eb)?OSBrowser)|(webOS)|(UCWEB)|(Windows Phone OS 7)|(XBLWP7)|(ZuneWP7)/.test( ua ) ) {
     645                                de.className += ' no-font-face';
     646                        }
     647                })();
     648                </script>
     649                <?php
     650        }
     651}
     652add_action('admin_head', '_mobile_font_face_test');
     653
     654
    636655/**
    637656 * Check lock status for posts displayed on the Posts screen
    638657 *