WordPress.org

Make WordPress Core

Changeset 6930


Ignore:
Timestamp:
02/20/2008 05:39:04 AM (13 years ago)
Author:
ryan
Message:

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

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.