Cleaner and ideally future-proof detection of mobile Safari browsers. see #12303
git-svn-id: https://develop.svn.wordpress.org/trunk@13555 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c3622bd0f4
commit
e451b71f9c
@ -23,7 +23,7 @@
|
||||
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('stylesheet_url'); ?>" />
|
||||
<link rel="stylesheet" type="text/css" media="print" href="<?php bloginfo('stylesheet_directory'); ?>/print.css" />
|
||||
|
||||
<?php if( strstr( $_SERVER['HTTP_USER_AGENT'], 'iPhone' ) || strstr( $_SERVER['HTTP_USER_AGENT'], 'iPod' ) || strstr( $_SERVER['HTTP_USER_AGENT'], 'iPad' ) ) : ?>
|
||||
<?php if ( preg_match( '/Apple.*Mobile.*Safari/i', $_SERVER['HTTP_USER_AGENT'] ) ) : ?>
|
||||
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('stylesheet_directory'); ?>/mobile-webkit.css" />
|
||||
<?php endif; ?>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user