Make WordPress Core


Ignore:
Timestamp:
10/31/2008 04:52:55 PM (18 years ago)
Author:
azaozz
Message:

More edit comment page fixes

File:
1 edited

Legend:

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

    r9384 r9434  
    14791479                $rows = 12;
    14801480
    1481         $rows = "rows='$rows'"; ?>
     1481        $richedit =  user_can_richedit();
     1482        $rows = "rows='$rows'";
     1483       
     1484        if ( $richedit || $media_buttons ) { ?>
    14821485        <div id="editor-toolbar">
    1483         <?php if ( user_can_richedit() ) {
     1486        <?php if ( $richedit ) {
    14841487                $wp_default_editor = wp_default_editor(); ?>
    14851488                <div class="zerosize"><input accesskey="e" type="button" onclick="switchEditors.go('<?php echo $id; ?>')" /></div>
    … …  
    14921495                        <a id="edButtonHTML" onclick="switchEditors.go('<?php echo $id; ?>', 'html');"><?php _e('HTML'); ?></a>
    14931496                        <a id="edButtonPreview" class="active" onclick="switchEditors.go('<?php echo $id; ?>', 'tinymce');"><?php _e('Visual'); ?></a>
    1494                 <?php }
    1495         }
    1496 
    1497         if ( $media_buttons ) { ?>
    1498                 <div id="media-buttons" class="hide-if-no-js">
    1499                 <?php do_action( 'media_buttons' ); ?>
    1500                 </div>
     1497                <?php }
     1498                }
     1499
     1500                if ( $media_buttons ) { ?>
     1501                        <div id="media-buttons" class="hide-if-no-js">
     1502                        <?php do_action( 'media_buttons' ); ?>
     1503                        </div>
     1504                <?php } ?>
     1505        </div>
    15011506        <?php } ?>
    1502         </div>
    15031507
    15041508        <div id="quicktags">
Note: See TracChangeset for help on using the changeset viewer.