From 0d05f746cf32f0d4f47bf38515d33e78bbcfda2f Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 5 Jul 2007 20:11:32 +0000 Subject: [PATCH] Don't richedit for comments. Props Joseph Scott. fixes #4587 for 2.3 git-svn-id: http://svn.automattic.com/wordpress/trunk@5780 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/general-template.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index 92f6f93224..9699e64e4a 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -821,7 +821,8 @@ function user_can_richedit() { if ( !isset( $wp_rich_edit) ) { if ( get_user_option( 'rich_editing' ) == 'true' && ( ( preg_match( '!AppleWebKit/(\d+)!', $_SERVER['HTTP_USER_AGENT'], $match ) && intval($match[1]) >= 420 ) || - !preg_match( '!opera[ /][2-8]|konqueror|safari!i', $_SERVER['HTTP_USER_AGENT'] ) ) ) { + !preg_match( '!opera[ /][2-8]|konqueror|safari!i', $_SERVER['HTTP_USER_AGENT'] ) ) + && 'comment.php' != $pagenow ) { $wp_rich_edit = true; } else { $wp_rich_edit = false;