From 98779e975248fa95464a4efc2d7d36f64de32600 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 20 Feb 2008 05:39:04 +0000 Subject: [PATCH] Don't show Add Media when editing comments. Props azaozz. fixes #5910 git-svn-id: https://develop.svn.wordpress.org/trunk@6930 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/edit-form-comment.php | 2 +- wp-admin/wp-admin.css | 2 +- wp-includes/general-template.php | 7 +++++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/wp-admin/edit-form-comment.php b/wp-admin/edit-form-comment.php index 5cb5803f1f..17e259db8c 100644 --- a/wp-admin/edit-form-comment.php +++ b/wp-admin/edit-form-comment.php @@ -44,7 +44,7 @@ addLoadEvent(focusit);

-comment_content, 'content'); ?> +comment_content, 'content', 'newcomment_author_url', false); ?>
diff --git a/wp-admin/wp-admin.css b/wp-admin/wp-admin.css index f286906261..7d99c6d304 100644 --- a/wp-admin/wp-admin.css +++ b/wp-admin/wp-admin.css @@ -282,7 +282,7 @@ input.delete:hover { color: #fff; } -#postdivrich #quicktags, #postdiv #quicktags { +#quicktags { background: #cee1ef; padding: 0; border: 0 none; diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index a12f850e91..c5be59fc2e 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -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') { + } + + if ( $media_buttons ) { ?>
+