mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-22 06:29:30 +00:00
Don't show Add Media when editing comments. Props azaozz. fixes #5910
git-svn-id: http://svn.automattic.com/wordpress/trunk@6930 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2533bac2df
commit
e6fae2dc51
@ -44,7 +44,7 @@ addLoadEvent(focusit);
|
||||
|
||||
<div id="postdiv" class="postarea">
|
||||
<h3><?php _e('Comment') ?></h3>
|
||||
<?php the_editor($comment->comment_content, 'content'); ?>
|
||||
<?php the_editor($comment->comment_content, 'content', 'newcomment_author_url', false); ?>
|
||||
<?php wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?>
|
||||
</div>
|
||||
|
||||
|
@ -282,7 +282,7 @@ input.delete:hover {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
#postdivrich #quicktags, #postdiv #quicktags {
|
||||
#quicktags {
|
||||
background: #cee1ef;
|
||||
padding: 0;
|
||||
border: 0 none;
|
||||
|
@ -918,7 +918,7 @@ function wp_default_editor() {
|
||||
return apply_filters( 'wp_default_editor', $r ); // filter
|
||||
}
|
||||
|
||||
function the_editor($content, $id = 'content', $prev_id = 'title') {
|
||||
function the_editor($content, $id = 'content', $prev_id = 'title', $media_buttons = true) {
|
||||
$rows = get_option('default_post_edit_rows');
|
||||
if (($rows < 3) || ($rows > 100))
|
||||
$rows = 12;
|
||||
@ -937,11 +937,14 @@ function the_editor($content, $id = 'content', $prev_id = 'title') {
|
||||
<a id="edButtonHTML" class="active"><?php _e('HTML'); ?></a>
|
||||
<a id="edButtonPreview" onclick="switchEditors.go('<?php echo $id; ?>');"><?php _e('Visual'); ?></a>
|
||||
<?php }
|
||||
} ?>
|
||||
}
|
||||
|
||||
if ( $media_buttons ) { ?>
|
||||
<div id="media-buttons">
|
||||
<?php _e('Add media:'); ?>
|
||||
<?php do_action( 'media_buttons'); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<div id="quicktags">
|
||||
|
Loading…
x
Reference in New Issue
Block a user