From 76d75b7d224b4b2f49beb49af38848297d9a0c4b Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Sat, 7 Dec 2013 18:45:37 +0000 Subject: [PATCH] Fake a "non-responsive" window width for IE < 9 when folding/unfolding the menu (old IE doesn't support @media), fixes #26458. git-svn-id: https://develop.svn.wordpress.org/trunk@26785 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/js/common.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/js/common.js b/src/wp-admin/js/common.js index 01a3c7de02..bf413370dc 100644 --- a/src/wp-admin/js/common.js +++ b/src/wp-admin/js/common.js @@ -188,8 +188,8 @@ $(document).ready( function() { // window.innerWidth is affected by zooming on phones respWidth = Math.max( window.innerWidth, document.documentElement.clientWidth ); } else { - // Exclude IE < 9, it doesn't support @media CSS rules - return; + // IE < 9 doesn't support @media CSS rules + respWidth = 901; } if ( respWidth && respWidth < 900 ) {