Editor scrolling: also disable in IE < 9. See #28328.

Built from https://develop.svn.wordpress.org/trunk@29180


git-svn-id: http://core.svn.wordpress.org/trunk@28964 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz 2014-07-15 22:37:14 +00:00
parent 93fdff3581
commit 5ff77be200

View File

@ -12,7 +12,9 @@ if ( !defined('ABSPATH') )
wp_enqueue_script('post'); wp_enqueue_script('post');
if ( post_type_supports( $post_type, 'editor' ) && ! wp_is_mobile() ) { if ( post_type_supports( $post_type, 'editor' ) && ! wp_is_mobile() &&
! ( $is_IE && preg_match( '/MSIE [5678]/', $_SERVER['HTTP_USER_AGENT'] ) ) ) {
wp_enqueue_script('editor-expand'); wp_enqueue_script('editor-expand');
$_wp_autoresize_on = true; $_wp_autoresize_on = true;
} }