Make WordPress Core


Ignore:
Timestamp:
04/25/2013 04:06:06 AM (11 years ago)
Author:
markjaquith
Message:

Fix some issues related to status/aside editor height changing.

props wonderboymusic. fixes #23992.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-form-advanced.php

    r24081 r24084  
    461461<div id="postdivrich" class="postarea edit-form-section">
    462462
    463 <?php wp_editor($post->post_content, 'content', array('dfw' => true, 'tabfocus_elements' => 'insert-media-button,save-post', 'editor_height' => 360) ); ?>
    464 
     463<?php wp_editor( $post->post_content, 'content', array(
     464    'dfw' => true,
     465    'tabfocus_elements' => 'insert-media-button,save-post',
     466    'editor_height' => in_array( $post_format, array( 'status', 'aside' ) ) ? 120 : 360
     467) ); ?>
    465468<table id="post-status-info" cellspacing="0"><tbody><tr>
    466469    <td id="wp-word-count"><?php printf( __( 'Word count: %s' ), '<span class="word-count">0</span>' ); ?></td>
Note: See TracChangeset for help on using the changeset viewer.