WordPress.org

Make WordPress Core

Changeset 4622


Ignore:
Timestamp:
12/07/06 00:38:54 (7 years ago)
Author:
markjaquith
Message:

Disable RTE when editing comments. Props mdawaffe. fixes #3449

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/general-template.php

    r4545 r4622  
    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); 
Note: See TracChangeset for help on using the changeset viewer.