General: use a new function, wp_is_IE(), instead of the $is_IE global in a number of places.

See #37699.


git-svn-id: https://develop.svn.wordpress.org/trunk@38467 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor
2016-08-31 06:41:07 +00:00
parent 97ea98f145
commit f9278a9364
9 changed files with 27 additions and 32 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ $_wp_editor_expand = $_content_editor_dfw = false;
* @param string $post_type Post type.
*/
if ( post_type_supports( $post_type, 'editor' ) && ! wp_is_mobile() &&
! ( $is_IE && preg_match( '/MSIE [5678]/', $_SERVER['HTTP_USER_AGENT'] ) ) &&
! ( wp_is_IE() && preg_match( '/MSIE [5678]/', $_SERVER['HTTP_USER_AGENT'] ) ) &&
apply_filters( 'wp_editor_expand', true, $post_type ) ) {
wp_enqueue_script('editor-expand');