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

git-svn-id: https://develop.svn.wordpress.org/trunk@19432 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2011-11-23 22:49:17 +00:00
parent d18820448a
commit ae2743d972
2 changed files with 4 additions and 8 deletions
+2 -2
View File
@@ -1749,10 +1749,10 @@ function rich_edit_exists() {
function user_can_richedit() {
global $wp_rich_edit, $is_gecko, $is_opera, $is_safari, $is_chrome, $is_iphone, $is_IE;
if ( !isset( $wp_rich_edit) ) {
if ( !isset($wp_rich_edit) ) {
$wp_rich_edit = false;
if ( get_user_option( 'rich_editing' ) == 'true' ) {
if ( get_user_option( 'rich_editing' ) == 'true' || !is_user_logged_in() ) { // default to 'true' for logged out users
if ( $is_safari ) {
if ( !$is_iphone || ( preg_match( '!AppleWebKit/(\d+)!', $_SERVER['HTTP_USER_AGENT'], $match ) && intval($match[1]) >= 534 ) )
$wp_rich_edit = true;