Skip to content

Commit

Permalink
Editor expand: add docs for the wp_editor_expand filter, props Drew…
Browse files Browse the repository at this point in the history
…APicture, 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
  • Loading branch information
azaozz committed Aug 29, 2014
1 parent 27338de commit 446cdf7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions wp-admin/edit-form-advanced.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@
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 ) ) {
Expand Down

0 comments on commit 446cdf7

Please sign in to comment.