Disable RTE when editing comments. Props mdawaffe. fixes #3449
git-svn-id: http://svn.automattic.com/wordpress/trunk@4622 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
021e19efe3
commit
fec072e555
|
@ -782,10 +782,10 @@ function rich_edit_exists() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function user_can_richedit() {
|
function user_can_richedit() {
|
||||||
global $wp_rich_edit;
|
global $wp_rich_edit, $pagenow;
|
||||||
|
|
||||||
if ( !isset($wp_rich_edit) )
|
if ( !isset($wp_rich_edit) )
|
||||||
$wp_rich_edit = ( 'true' == get_user_option('rich_editing') && !preg_match('!opera[ /][2-8]|konqueror|safari!i', $_SERVER['HTTP_USER_AGENT']) && rich_edit_exists() ) ? true : false;
|
$wp_rich_edit = ( 'true' == get_user_option('rich_editing') && !preg_match('!opera[ /][2-8]|konqueror|safari!i', $_SERVER['HTTP_USER_AGENT']) && 'comment.php' != $pagenow && rich_edit_exists() ) ? true : false;
|
||||||
|
|
||||||
return apply_filters('user_can_richedit', $wp_rich_edit);
|
return apply_filters('user_can_richedit', $wp_rich_edit);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue