WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/23/2011 10:49:17 PM (9 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/class-wp-editor.php

    r19420 r19432  
    3939            'teeny' => false, // output the minimal editor config used in Press This
    4040            'dfw' => false, // replace the default fullscreen with DFW (needs specific DOM elements and css)
    41             'tinymce' => null, // load TinyMCE, can be used to pass settings directly to TinyMCE using an array()
     41            'tinymce' => true, // load TinyMCE, can be used to pass settings directly to TinyMCE using an array()
    4242            'quicktags' => true // load Quicktags, can be used to pass settings directly to Quicktags using an array()
    4343        ) );
    4444
    45         if ( null === $set['tinymce'] )
    46             self::$this_tinymce = user_can_richedit();
    47         else
    48             self::$this_tinymce = (bool) $set['tinymce'];
    49 
     45        self::$this_tinymce = ( $set['tinymce'] && user_can_richedit() );
    5046        self::$this_quicktags = (bool) $set['quicktags'];
    5147
Note: See TracChangeset for help on using the changeset viewer.