Make WordPress Core


Ignore:
Timestamp:
05/19/2011 07:34:54 AM (14 years ago)
Author:
azaozz
Message:

Don't show the Fullscreen button on the comment edit page, see #17136

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/general-template.php

    r17695 r17966  
    17871787 * @param int $tab_index Optional, default is 2. Tabindex for textarea element.
    17881788 */
    1789 function the_editor($content, $id = 'content', $prev_id = 'title', $media_buttons = true, $tab_index = 2) {
     1789function the_editor($content, $id = 'content', $prev_id = 'title', $media_buttons = true, $tab_index = 2, $extended = true) {
    17901790    $rows = get_option('default_post_edit_rows');
    17911791    if (($rows < 3) || ($rows > 100))
     
    18401840    <script type="text/javascript">
    18411841    edCanvas = document.getElementById('<?php echo $id; ?>');
     1842<?php if ( ! $extended ) { ?>   jQuery('#ed_fullscreen, #ed_more').hide();<?php } ?>
    18421843    </script>
    18431844<?php
     
    18451846    if ( $richedit )
    18461847        add_action( 'admin_print_footer_scripts', 'wp_tiny_mce', 25 );
    1847     else
     1848    elseif ( $extended )
    18481849        add_action( 'admin_print_footer_scripts', 'wp_quicktags', 25 );
    18491850
Note: See TracChangeset for help on using the changeset viewer.