WordPress.org

Make WordPress Core

Ticket #3449: 3449.diff

File 3449.diff, 830 bytes (added by mdawaffe, 9 years ago)
  • wp-includes/general-template.php

     
    782782} 
    783783 
    784784function user_can_richedit() { 
    785         global $wp_rich_edit; 
    786          
     785        global $wp_rich_edit, $pagenow; 
     786 
    787787        if ( !isset($wp_rich_edit) ) 
    788                 $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; 
     788                $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; 
    789789 
    790790        return apply_filters('user_can_richedit', $wp_rich_edit); 
    791791}