Changeset 29653
- Timestamp:
- 08/29/2014 02:27:06 AM (12 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/edit-form-advanced.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/edit-form-advanced.php
r29628 r29653 12 12 13 13 wp_enqueue_script('post'); 14 $_wp_editor_expand = false; 14 15 15 16 if ( post_type_supports( $post_type, 'editor' ) && ! wp_is_mobile() && 16 ! ( $is_IE && preg_match( '/MSIE [5678]/', $_SERVER['HTTP_USER_AGENT'] ) ) ) { 17 ! ( $is_IE && preg_match( '/MSIE [5678]/', $_SERVER['HTTP_USER_AGENT'] ) ) && 18 apply_filters( 'wp_editor_expand', true ) ) { 17 19 18 20 wp_enqueue_script('editor-expand'); 19 $_wp_ autoresize_on = true;21 $_wp_editor_expand = ( get_user_setting( 'editor_expand', 'on' ) === 'on' ); 20 22 } 21 23 … … 491 493 if ( post_type_supports($post_type, 'editor') ) { 492 494 ?> 493 <div id="postdivrich" class="postarea<?php if ( get_user_setting( 'editor_expand', 'on' ) === 'on') { echo ' wp-editor-expand'; } ?>">495 <div id="postdivrich" class="postarea<?php if ( $_wp_editor_expand ) { echo ' wp-editor-expand'; } ?>"> 494 496 495 497 <?php wp_editor( $post->post_content, 'content', array( … … 500 502 'tinymce' => array( 501 503 'resize' => false, 502 'wp_autoresize_on' => ( ! empty( $_wp_autoresize_on ) && get_user_setting( 'editor_expand', 'on' ) === 'on' ),504 'wp_autoresize_on' => $_wp_editor_expand, 503 505 'add_unload_trigger' => false, 504 506 ),
Note: See TracChangeset
for help on using the changeset viewer.