From 446cdf72ee4002050f3730920f9468443d54971d Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Fri, 29 Aug 2014 02:38:16 +0000 Subject: [PATCH] Editor expand: add docs for the `wp_editor_expand` filter, props DrewAPicture, fixes #29423 Built from https://develop.svn.wordpress.org/trunk@29654 git-svn-id: http://core.svn.wordpress.org/trunk@29428 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/edit-form-advanced.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php index 6a1bc06ff4..26b0cd96bf 100644 --- a/wp-admin/edit-form-advanced.php +++ b/wp-admin/edit-form-advanced.php @@ -13,6 +13,13 @@ if ( !defined('ABSPATH') ) wp_enqueue_script('post'); $_wp_editor_expand = false; +/** + * Filter whether to enable the 'expand' functionality in the post editor. + * + * @since 4.0.0 + * + * @param bool $expand Whether to enable the 'expand' functionality. Default true. + */ 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 ) ) {