Docs: Correct placement for wp_editor_expand filter DocBlock.

See #50768.
Built from https://develop.svn.wordpress.org/trunk@48714


git-svn-id: http://core.svn.wordpress.org/trunk@48476 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2020-08-03 12:11:06 +00:00
parent 8ff7595ae9
commit 016df3b6c6
2 changed files with 8 additions and 4 deletions

View File

@ -53,9 +53,13 @@ $_content_editor_dfw = false;
* @param bool $expand Whether to enable the 'expand' functionality. Default true.
* @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'] ) ) &&
apply_filters( 'wp_editor_expand', true, $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;

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.6-alpha-48713';
$wp_version = '5.6-alpha-48714';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.