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

git-svn-id: https://develop.svn.wordpress.org/trunk@29180 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
azaozz 2014-07-15 22:36:02 +00:00
parent cba1ae06af
commit 12ebd89657
1 changed files with 3 additions and 1 deletions

View File

@ -12,7 +12,9 @@ if ( !defined('ABSPATH') )
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_autoresize_on = true;
}