Created
January 23, 2013 08:09
-
-
Save anonymous/4603012 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'init', 'woo_remove_responsive_ie8', 9 ); | |
function woo_remove_responsive_ie8() { | |
if ( is_admin() || !is_child_theme() ) return; | |
global $is_IE; | |
if ($is_IE) { | |
$browser = $_SERVER['HTTP_USER_AGENT']; | |
$browser = substr( "$browser", 25, 8); | |
if ($browser == "MSIE 8.0" ) { | |
add_action( 'init', 'woo_load_responsive_design_removal', 10 ); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment