Changeset 6930

Show
Ignore:
Timestamp:
02/20/08 05:39:04 (9 months ago)
Author:
ryan
Message:

Don't show Add Media when editing comments. Props azaozz. fixes #5910

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/edit-form-comment.php

    r6923 r6930  
    4545<div id="postdiv" class="postarea"> 
    4646<h3><?php _e('Comment') ?></h3> 
    47 <?php the_editor($comment->comment_content, 'content'); ?> 
     47<?php the_editor($comment->comment_content, 'content', 'newcomment_author_url', false); ?> 
    4848<?php wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?> 
    4949</div> 
  • trunk/wp-admin/wp-admin.css

    r6923 r6930  
    283283} 
    284284 
    285 #postdivrich #quicktags, #postdiv #quicktags { 
     285#quicktags { 
    286286    background: #cee1ef; 
    287287    padding: 0; 
  • trunk/wp-includes/general-template.php

    r6894 r6930  
    919919} 
    920920 
    921 function the_editor($content, $id = 'content', $prev_id = 'title') { 
     921function the_editor($content, $id = 'content', $prev_id = 'title', $media_buttons = true) { 
    922922    $rows = get_option('default_post_edit_rows'); 
    923923    if (($rows < 3) || ($rows > 100)) 
     
    938938            <a id="edButtonPreview" onclick="switchEditors.go('<?php echo $id; ?>');"><?php _e('Visual'); ?></a> 
    939939        <?php } 
    940     } ?> 
     940    }  
     941     
     942    if ( $media_buttons ) { ?> 
    941943        <div id="media-buttons"> 
    942944        <?php _e('Add media:'); ?> 
    943945        <?php do_action( 'media_buttons'); ?> 
    944946        </div> 
     947    <?php } ?> 
    945948    </div> 
    946949