diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php index 993856d927..0152631617 100644 --- a/wp-admin/edit-form-advanced.php +++ b/wp-admin/edit-form-advanced.php @@ -44,26 +44,24 @@ wp_enqueue_script( 'post' ); $_wp_editor_expand = false; $_content_editor_dfw = false; -/** - * Filters whether to enable the 'expand' functionality in the post editor. - * - * @since 4.0.0 - * @since 4.1.0 Added the `$post_type` parameter. - * - * @param bool $expand Whether to enable the 'expand' functionality. Default true. - * @param string $post_type Post type. - */ -$_wp_editor_expand_enabled = apply_filters( 'wp_editor_expand', true, $post_type ); - if ( post_type_supports( $post_type, 'editor' ) && ! wp_is_mobile() && ! ( $is_IE && preg_match( '/MSIE [5678]/', $_SERVER['HTTP_USER_AGENT'] ) ) - && $_wp_editor_expand_enabled ) { - - wp_enqueue_script( 'editor-expand' ); - $_content_editor_dfw = true; - $_wp_editor_expand = ( 'on' === get_user_setting( 'editor_expand', 'on' ) ); + /** + * Filters whether to enable the 'expand' functionality in the post editor. + * + * @since 4.0.0 + * @since 4.1.0 Added the `$post_type` parameter. + * + * @param bool $expand Whether to enable the 'expand' functionality. Default true. + * @param string $post_type Post type. + */ + if ( apply_filters( 'wp_editor_expand', true, $post_type ) ) { + wp_enqueue_script( 'editor-expand' ); + $_content_editor_dfw = true; + $_wp_editor_expand = ( 'on' === get_user_setting( 'editor_expand', 'on' ) ); + } } if ( wp_is_mobile() ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index 1c42756f16..fae537b1c2 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.6-alpha-48941'; +$wp_version = '5.6-alpha-48942'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.