Make WordPress Core


Ignore:
Timestamp:
11/23/2011 10:49:17 PM (15 years ago)
Author:
azaozz
Message:

Changes user_can_richedit() to default to true for logged out users, same as the default for logged in users, fixes #19320

File:
1 edited

Legend:

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

    r19420 r19432  
    17501750        global $wp_rich_edit, $is_gecko, $is_opera, $is_safari, $is_chrome, $is_iphone, $is_IE;
    17511751
    1752         if ( !isset( $wp_rich_edit) ) {
     1752        if ( !isset($wp_rich_edit) ) {
    17531753                $wp_rich_edit = false;
    17541754
    1755                 if ( get_user_option( 'rich_editing' ) == 'true' ) {
     1755                if ( get_user_option( 'rich_editing' ) == 'true' || !is_user_logged_in() ) { // default to 'true' for logged out users
    17561756                        if ( $is_safari ) {
    17571757                                if ( !$is_iphone || ( preg_match( '!AppleWebKit/(\d+)!', $_SERVER['HTTP_USER_AGENT'], $match ) && intval($match[1]) >= 534 ) )
Note: See TracChangeset for help on using the changeset viewer.