mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
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:
parent
93fdff3581
commit
5ff77be200
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user