user_can_richedit

The timeline below displays how wordpress function user_can_richedit has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.3

/**
 * Determines whether the user can access the visual editor.
 *
 * Checks if the user can access the visual editor and that it's supported by the user's browser.
 *
 * @since 2.0.0
 *
 * @global bool $wp_rich_edit Whether the user can access the visual editor.
 * @global bool $is_gecko     Whether the browser is Gecko-based.
 * @global bool $is_opera     Whether the browser is Opera.
 * @global bool $is_safari    Whether the browser is Safari.
 * @global bool $is_chrome    Whether the browser is Chrome.
 * @global bool $is_IE        Whether the browser is Internet Explorer.
 * @global bool $is_edge      Whether the browser is Microsoft Edge.
 *
 * @return bool True if the user can access the visual editor, false otherwise.
 */
function user_can_richedit()
{
    global $wp_rich_edit, $is_gecko, $is_opera, $is_safari, $is_chrome, $is_IE, $is_edge;
    if (!isset($wp_rich_edit)) {
        $wp_rich_edit = false;
        if ('true' === get_user_option('rich_editing') || !is_user_logged_in()) {
            // Default to 'true' for logged out users.
            if ($is_safari) {
                $wp_rich_edit = !wp_is_mobile() || preg_match('!AppleWebKit/(\d+)!', $_SERVER['HTTP_USER_AGENT'], $match) && (int) $match[1] >= 534;
            } elseif ($is_IE) {
                $wp_rich_edit = str_contains($_SERVER['HTTP_USER_AGENT'], 'Trident/7.0;');
            } elseif ($is_gecko || $is_chrome || $is_edge || $is_opera && !wp_is_mobile()) {
                $wp_rich_edit = true;
            }
        }
    }
    /**
     * Filters whether the user can access the visual editor.
     *
     * @since 2.1.0
     *
     * @param bool $wp_rich_edit Whether the user can access the visual editor.
     */
    return apply_filters('user_can_richedit', $wp_rich_edit);
}

WordPress Version: 6.1

/**
 * Determines whether the user can access the visual editor.
 *
 * Checks if the user can access the visual editor and that it's supported by the user's browser.
 *
 * @since 2.0.0
 *
 * @global bool $wp_rich_edit Whether the user can access the visual editor.
 * @global bool $is_gecko     Whether the browser is Gecko-based.
 * @global bool $is_opera     Whether the browser is Opera.
 * @global bool $is_safari    Whether the browser is Safari.
 * @global bool $is_chrome    Whether the browser is Chrome.
 * @global bool $is_IE        Whether the browser is Internet Explorer.
 * @global bool $is_edge      Whether the browser is Microsoft Edge.
 *
 * @return bool True if the user can access the visual editor, false otherwise.
 */
function user_can_richedit()
{
    global $wp_rich_edit, $is_gecko, $is_opera, $is_safari, $is_chrome, $is_IE, $is_edge;
    if (!isset($wp_rich_edit)) {
        $wp_rich_edit = false;
        if ('true' === get_user_option('rich_editing') || !is_user_logged_in()) {
            // Default to 'true' for logged out users.
            if ($is_safari) {
                $wp_rich_edit = !wp_is_mobile() || preg_match('!AppleWebKit/(\d+)!', $_SERVER['HTTP_USER_AGENT'], $match) && (int) $match[1] >= 534;
            } elseif ($is_IE) {
                $wp_rich_edit = strpos($_SERVER['HTTP_USER_AGENT'], 'Trident/7.0;') !== false;
            } elseif ($is_gecko || $is_chrome || $is_edge || $is_opera && !wp_is_mobile()) {
                $wp_rich_edit = true;
            }
        }
    }
    /**
     * Filters whether the user can access the visual editor.
     *
     * @since 2.1.0
     *
     * @param bool $wp_rich_edit Whether the user can access the visual editor.
     */
    return apply_filters('user_can_richedit', $wp_rich_edit);
}

WordPress Version: 5.6

/**
 * Whether the user can access the visual editor.
 *
 * Checks if the user can access the visual editor and that it's supported by the user's browser.
 *
 * @since 2.0.0
 *
 * @global bool $wp_rich_edit Whether the user can access the visual editor.
 * @global bool $is_gecko     Whether the browser is Gecko-based.
 * @global bool $is_opera     Whether the browser is Opera.
 * @global bool $is_safari    Whether the browser is Safari.
 * @global bool $is_chrome    Whether the browser is Chrome.
 * @global bool $is_IE        Whether the browser is Internet Explorer.
 * @global bool $is_edge      Whether the browser is Microsoft Edge.
 *
 * @return bool True if the user can access the visual editor, false otherwise.
 */
function user_can_richedit()
{
    global $wp_rich_edit, $is_gecko, $is_opera, $is_safari, $is_chrome, $is_IE, $is_edge;
    if (!isset($wp_rich_edit)) {
        $wp_rich_edit = false;
        if ('true' === get_user_option('rich_editing') || !is_user_logged_in()) {
            // Default to 'true' for logged out users.
            if ($is_safari) {
                $wp_rich_edit = !wp_is_mobile() || preg_match('!AppleWebKit/(\d+)!', $_SERVER['HTTP_USER_AGENT'], $match) && (int) $match[1] >= 534;
            } elseif ($is_IE) {
                $wp_rich_edit = strpos($_SERVER['HTTP_USER_AGENT'], 'Trident/7.0;') !== false;
            } elseif ($is_gecko || $is_chrome || $is_edge || $is_opera && !wp_is_mobile()) {
                $wp_rich_edit = true;
            }
        }
    }
    /**
     * Filters whether the user can access the visual editor.
     *
     * @since 2.1.0
     *
     * @param bool $wp_rich_edit Whether the user can access the visual editor.
     */
    return apply_filters('user_can_richedit', $wp_rich_edit);
}

WordPress Version: 5.5

/**
 * Whether the user can access the visual editor.
 *
 * Checks if the user can access the visual editor and that it's supported by the user's browser.
 *
 * @since 2.0.0
 *
 * @global bool $wp_rich_edit Whether the user can access the visual editor.
 * @global bool $is_gecko     Whether the browser is Gecko-based.
 * @global bool $is_opera     Whether the browser is Opera.
 * @global bool $is_safari    Whether the browser is Safari.
 * @global bool $is_chrome    Whether the browser is Chrome.
 * @global bool $is_IE        Whether the browser is Internet Explorer.
 * @global bool $is_edge      Whether the browser is Microsoft Edge.
 *
 * @return bool True if the user can access the visual editor, false otherwise.
 */
function user_can_richedit()
{
    global $wp_rich_edit, $is_gecko, $is_opera, $is_safari, $is_chrome, $is_IE, $is_edge;
    if (!isset($wp_rich_edit)) {
        $wp_rich_edit = false;
        if ('true' === get_user_option('rich_editing') || !is_user_logged_in()) {
            // Default to 'true' for logged out users.
            if ($is_safari) {
                $wp_rich_edit = !wp_is_mobile() || preg_match('!AppleWebKit/(\d+)!', $_SERVER['HTTP_USER_AGENT'], $match) && intval($match[1]) >= 534;
            } elseif ($is_IE) {
                $wp_rich_edit = strpos($_SERVER['HTTP_USER_AGENT'], 'Trident/7.0;') !== false;
            } elseif ($is_gecko || $is_chrome || $is_edge || $is_opera && !wp_is_mobile()) {
                $wp_rich_edit = true;
            }
        }
    }
    /**
     * Filters whether the user can access the visual editor.
     *
     * @since 2.1.0
     *
     * @param bool $wp_rich_edit Whether the user can access the visual editor.
     */
    return apply_filters('user_can_richedit', $wp_rich_edit);
}

WordPress Version: 5.4

/**
 * Whether the user can access the visual editor.
 *
 * Checks if the user can access the visual editor and that it's supported by the user's browser.
 *
 * @since 2.0.0
 *
 * @global bool $wp_rich_edit Whether the user can access the visual editor.
 * @global bool $is_gecko     Whether the browser is Gecko-based.
 * @global bool $is_opera     Whether the browser is Opera.
 * @global bool $is_safari    Whether the browser is Safari.
 * @global bool $is_chrome    Whether the browser is Chrome.
 * @global bool $is_IE        Whether the browser is Internet Explorer.
 * @global bool $is_edge      Whether the browser is Microsoft Edge.
 *
 * @return bool True if the user can access the visual editor, false otherwise.
 */
function user_can_richedit()
{
    global $wp_rich_edit, $is_gecko, $is_opera, $is_safari, $is_chrome, $is_IE, $is_edge;
    if (!isset($wp_rich_edit)) {
        $wp_rich_edit = false;
        if (get_user_option('rich_editing') == 'true' || !is_user_logged_in()) {
            // Default to 'true' for logged out users.
            if ($is_safari) {
                $wp_rich_edit = !wp_is_mobile() || preg_match('!AppleWebKit/(\d+)!', $_SERVER['HTTP_USER_AGENT'], $match) && intval($match[1]) >= 534;
            } elseif ($is_IE) {
                $wp_rich_edit = strpos($_SERVER['HTTP_USER_AGENT'], 'Trident/7.0;') !== false;
            } elseif ($is_gecko || $is_chrome || $is_edge || $is_opera && !wp_is_mobile()) {
                $wp_rich_edit = true;
            }
        }
    }
    /**
     * Filters whether the user can access the visual editor.
     *
     * @since 2.1.0
     *
     * @param bool $wp_rich_edit Whether the user can access the visual editor.
     */
    return apply_filters('user_can_richedit', $wp_rich_edit);
}

WordPress Version: .20

/**
 * Whether the user can access the visual editor.
 *
 * Checks if the user can access the visual editor and that it's supported by the user's browser.
 *
 * @since 2.0.0
 *
 * @global bool $wp_rich_edit Whether the user can access the visual editor.
 * @global bool $is_gecko     Whether the browser is Gecko-based.
 * @global bool $is_opera     Whether the browser is Opera.
 * @global bool $is_safari    Whether the browser is Safari.
 * @global bool $is_chrome    Whether the browser is Chrome.
 * @global bool $is_IE        Whether the browser is Internet Explorer.
 * @global bool $is_edge      Whether the browser is Microsoft Edge.
 *
 * @return bool True if the user can access the visual editor, false otherwise.
 */
function user_can_richedit()
{
    global $wp_rich_edit, $is_gecko, $is_opera, $is_safari, $is_chrome, $is_IE, $is_edge;
    if (!isset($wp_rich_edit)) {
        $wp_rich_edit = false;
        if (get_user_option('rich_editing') == 'true' || !is_user_logged_in()) {
            // default to 'true' for logged out users
            if ($is_safari) {
                $wp_rich_edit = !wp_is_mobile() || preg_match('!AppleWebKit/(\d+)!', $_SERVER['HTTP_USER_AGENT'], $match) && intval($match[1]) >= 534;
            } elseif ($is_IE) {
                $wp_rich_edit = strpos($_SERVER['HTTP_USER_AGENT'], 'Trident/7.0;') !== false;
            } elseif ($is_gecko || $is_chrome || $is_edge || $is_opera && !wp_is_mobile()) {
                $wp_rich_edit = true;
            }
        }
    }
    /**
     * Filters whether the user can access the visual editor.
     *
     * @since 2.1.0
     *
     * @param bool $wp_rich_edit Whether the user can access the visual editor.
     */
    return apply_filters('user_can_richedit', $wp_rich_edit);
}

WordPress Version: 9.2

/**
 * Whether the user can access the visual editor.
 *
 * Checks if the user can access the visual editor and that it's supported by the user's browser.
 *
 * @since 2.0.0
 *
 * @global bool $wp_rich_edit Whether the user can access the visual editor.
 * @global bool $is_gecko     Whether the browser is Gecko-based.
 * @global bool $is_opera     Whether the browser is Opera.
 * @global bool $is_safari    Whether the browser is Safari.
 * @global bool $is_chrome    Whether the browser is Chrome.
 * @global bool $is_IE        Whether the browser is Internet Explorer.
 * @global bool $is_edge      Whether the browser is Microsoft Edge.
 *
 * @return bool True if the user can access the visual editor, false otherwise.
 */
function user_can_richedit()
{
    global $wp_rich_edit, $is_gecko, $is_opera, $is_safari, $is_chrome, $is_IE, $is_edge;
    if (!isset($wp_rich_edit)) {
        $wp_rich_edit = false;
        if (get_user_option('rich_editing') == 'true' || !is_user_logged_in()) {
            // default to 'true' for logged out users
            if ($is_safari) {
                $wp_rich_edit = !wp_is_mobile() || preg_match('!AppleWebKit/(\d+)!', $_SERVER['HTTP_USER_AGENT'], $match) && intval($match[1]) >= 534;
            } elseif ($is_IE) {
                $wp_rich_edit = strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE ') === false;
            } elseif ($is_gecko || $is_chrome || $is_edge || $is_opera && !wp_is_mobile()) {
                $wp_rich_edit = true;
            }
        }
    }
    /**
     * Filters whether the user can access the visual editor.
     *
     * @since 2.1.0
     *
     * @param bool $wp_rich_edit Whether the user can access the visual editor.
     */
    return apply_filters('user_can_richedit', $wp_rich_edit);
}

WordPress Version: .10

/**
 * Whether the user can access the visual editor.
 *
 * Checks if the user can access the visual editor and that it's supported by the user's browser.
 *
 * @since 2.0.0
 *
 * @global bool $wp_rich_edit Whether the user can access the visual editor.
 * @global bool $is_gecko     Whether the browser is Gecko-based.
 * @global bool $is_opera     Whether the browser is Opera.
 * @global bool $is_safari    Whether the browser is Safari.
 * @global bool $is_chrome    Whether the browser is Chrome.
 * @global bool $is_IE        Whether the browser is Internet Explorer.
 * @global bool $is_edge      Whether the browser is Microsoft Edge.
 *
 * @return bool True if the user can access the visual editor, false otherwise.
 */
function user_can_richedit()
{
    global $wp_rich_edit, $is_gecko, $is_opera, $is_safari, $is_chrome, $is_IE, $is_edge;
    if (!isset($wp_rich_edit)) {
        $wp_rich_edit = false;
        if (get_user_option('rich_editing') == 'true' || !is_user_logged_in()) {
            // default to 'true' for logged out users
            if ($is_safari) {
                $wp_rich_edit = !wp_is_mobile() || preg_match('!AppleWebKit/(\d+)!', $_SERVER['HTTP_USER_AGENT'], $match) && intval($match[1]) >= 534;
            } elseif ($is_IE) {
                $wp_rich_edit = strpos($_SERVER['HTTP_USER_AGENT'], 'Trident/7.0;') !== false;
            } elseif ($is_gecko || $is_chrome || $is_edge || $is_opera && !wp_is_mobile()) {
                $wp_rich_edit = true;
            }
        }
    }
    /**
     * Filters whether the user can access the visual editor.
     *
     * @since 2.1.0
     *
     * @param bool $wp_rich_edit Whether the user can access the visual editor.
     */
    return apply_filters('user_can_richedit', $wp_rich_edit);
}

WordPress Version: 4.8

/**
 * Whether the user can access the visual editor.
 *
 * Checks if the user can access the visual editor and that it's supported by the user's browser.
 *
 * @since 2.0.0
 *
 * @global bool $wp_rich_edit Whether the user can access the visual editor.
 * @global bool $is_gecko     Whether the browser is Gecko-based.
 * @global bool $is_opera     Whether the browser is Opera.
 * @global bool $is_safari    Whether the browser is Safari.
 * @global bool $is_chrome    Whether the browser is Chrome.
 * @global bool $is_IE        Whether the browser is Internet Explorer.
 * @global bool $is_edge      Whether the browser is Microsoft Edge.
 *
 * @return bool True if the user can access the visual editor, false otherwise.
 */
function user_can_richedit()
{
    global $wp_rich_edit, $is_gecko, $is_opera, $is_safari, $is_chrome, $is_IE, $is_edge;
    if (!isset($wp_rich_edit)) {
        $wp_rich_edit = false;
        if (get_user_option('rich_editing') == 'true' || !is_user_logged_in()) {
            // default to 'true' for logged out users
            if ($is_safari) {
                $wp_rich_edit = !wp_is_mobile() || preg_match('!AppleWebKit/(\d+)!', $_SERVER['HTTP_USER_AGENT'], $match) && intval($match[1]) >= 534;
            } elseif ($is_IE) {
                $wp_rich_edit = strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE ') === false;
            } elseif ($is_gecko || $is_chrome || $is_edge || $is_opera && !wp_is_mobile()) {
                $wp_rich_edit = true;
            }
        }
    }
    /**
     * Filters whether the user can access the visual editor.
     *
     * @since 2.1.0
     *
     * @param bool $wp_rich_edit Whether the user can access the visual editor.
     */
    return apply_filters('user_can_richedit', $wp_rich_edit);
}

WordPress Version: 4.7

/**
 * Whether the user can access the visual editor.
 *
 * Checks if the user can access the visual editor and that it's supported by the user's browser.
 *
 * @since 2.0.0
 *
 * @global bool $wp_rich_edit Whether the user can access the visual editor.
 * @global bool $is_gecko     Whether the browser is Gecko-based.
 * @global bool $is_opera     Whether the browser is Opera.
 * @global bool $is_safari    Whether the browser is Safari.
 * @global bool $is_chrome    Whether the browser is Chrome.
 * @global bool $is_IE        Whether the browser is Internet Explorer.
 * @global bool $is_edge      Whether the browser is Microsoft Edge.
 *
 * @return bool True if the user can access the visual editor, false otherwise.
 */
function user_can_richedit()
{
    global $wp_rich_edit, $is_gecko, $is_opera, $is_safari, $is_chrome, $is_IE, $is_edge;
    if (!isset($wp_rich_edit)) {
        $wp_rich_edit = false;
        if (get_user_option('rich_editing') == 'true' || !is_user_logged_in()) {
            // default to 'true' for logged out users
            if ($is_safari) {
                $wp_rich_edit = !wp_is_mobile() || preg_match('!AppleWebKit/(\d+)!', $_SERVER['HTTP_USER_AGENT'], $match) && intval($match[1]) >= 534;
            } elseif ($is_gecko || $is_chrome || $is_IE || $is_edge || $is_opera && !wp_is_mobile()) {
                $wp_rich_edit = true;
            }
        }
    }
    /**
     * Filters whether the user can access the visual editor.
     *
     * @since 2.1.0
     *
     * @param bool $wp_rich_edit Whether the user can access the visual editor.
     */
    return apply_filters('user_can_richedit', $wp_rich_edit);
}

WordPress Version: 4.6

/**
 * Whether the user should have a WYSIWIG editor.
 *
 * Checks that the user requires a WYSIWIG editor and that the editor is
 * supported in the users browser.
 *
 * @since 2.0.0
 *
 * @global bool $wp_rich_edit
 * @global bool $is_gecko
 * @global bool $is_opera
 * @global bool $is_safari
 * @global bool $is_chrome
 * @global bool $is_IE
 *
 * @return bool
 */
function user_can_richedit()
{
    global $wp_rich_edit, $is_gecko, $is_opera, $is_safari, $is_chrome, $is_IE, $is_edge;
    if (!isset($wp_rich_edit)) {
        $wp_rich_edit = false;
        if (get_user_option('rich_editing') == 'true' || !is_user_logged_in()) {
            // default to 'true' for logged out users
            if ($is_safari) {
                $wp_rich_edit = !wp_is_mobile() || preg_match('!AppleWebKit/(\d+)!', $_SERVER['HTTP_USER_AGENT'], $match) && intval($match[1]) >= 534;
            } elseif ($is_gecko || $is_chrome || $is_IE || $is_edge || $is_opera && !wp_is_mobile()) {
                $wp_rich_edit = true;
            }
        }
    }
    /**
     * Filters whether the user can access the rich (Visual) editor.
     *
     * @since 2.1.0
     *
     * @param bool $wp_rich_edit Whether the user can access to the rich (Visual) editor.
     */
    return apply_filters('user_can_richedit', $wp_rich_edit);
}

WordPress Version: 4.4

/**
 * Whether the user should have a WYSIWIG editor.
 *
 * Checks that the user requires a WYSIWIG editor and that the editor is
 * supported in the users browser.
 *
 * @since 2.0.0
 *
 * @global bool $wp_rich_edit
 * @global bool $is_gecko
 * @global bool $is_opera
 * @global bool $is_safari
 * @global bool $is_chrome
 * @global bool $is_IE
 *
 * @return bool
 */
function user_can_richedit()
{
    global $wp_rich_edit, $is_gecko, $is_opera, $is_safari, $is_chrome, $is_IE, $is_edge;
    if (!isset($wp_rich_edit)) {
        $wp_rich_edit = false;
        if (get_user_option('rich_editing') == 'true' || !is_user_logged_in()) {
            // default to 'true' for logged out users
            if ($is_safari) {
                $wp_rich_edit = !wp_is_mobile() || preg_match('!AppleWebKit/(\d+)!', $_SERVER['HTTP_USER_AGENT'], $match) && intval($match[1]) >= 534;
            } elseif ($is_gecko || $is_chrome || $is_IE || $is_edge || $is_opera && !wp_is_mobile()) {
                $wp_rich_edit = true;
            }
        }
    }
    /**
     * Filter whether the user can access the rich (Visual) editor.
     *
     * @since 2.1.0
     *
     * @param bool $wp_rich_edit Whether the user can access to the rich (Visual) editor.
     */
    return apply_filters('user_can_richedit', $wp_rich_edit);
}

WordPress Version: 4.3

/**
 * Whether the user should have a WYSIWIG editor.
 *
 * Checks that the user requires a WYSIWIG editor and that the editor is
 * supported in the users browser.
 *
 * @since 2.0.0
 *
 * @global bool $wp_rich_edit
 * @global bool $is_gecko
 * @global bool $is_opera
 * @global bool $is_safari
 * @global bool $is_chrome
 * @global bool $is_IE
 *
 * @return bool
 */
function user_can_richedit()
{
    global $wp_rich_edit, $is_gecko, $is_opera, $is_safari, $is_chrome, $is_IE;
    if (!isset($wp_rich_edit)) {
        $wp_rich_edit = false;
        if (get_user_option('rich_editing') == 'true' || !is_user_logged_in()) {
            // default to 'true' for logged out users
            if ($is_safari) {
                $wp_rich_edit = !wp_is_mobile() || preg_match('!AppleWebKit/(\d+)!', $_SERVER['HTTP_USER_AGENT'], $match) && intval($match[1]) >= 534;
            } elseif ($is_gecko || $is_chrome || $is_IE || $is_opera && !wp_is_mobile()) {
                $wp_rich_edit = true;
            }
        }
    }
    /**
     * Filter whether the user can access the rich (Visual) editor.
     *
     * @since 2.1.0
     *
     * @param bool $wp_rich_edit Whether the user can access to the rich (Visual) editor.
     */
    return apply_filters('user_can_richedit', $wp_rich_edit);
}

WordPress Version: 3.9

/**
 * Whether the user should have a WYSIWIG editor.
 *
 * Checks that the user requires a WYSIWIG editor and that the editor is
 * supported in the users browser.
 *
 * @since 2.0.0
 *
 * @return bool
 */
function user_can_richedit()
{
    global $wp_rich_edit, $is_gecko, $is_opera, $is_safari, $is_chrome, $is_IE;
    if (!isset($wp_rich_edit)) {
        $wp_rich_edit = false;
        if (get_user_option('rich_editing') == 'true' || !is_user_logged_in()) {
            // default to 'true' for logged out users
            if ($is_safari) {
                $wp_rich_edit = !wp_is_mobile() || preg_match('!AppleWebKit/(\d+)!', $_SERVER['HTTP_USER_AGENT'], $match) && intval($match[1]) >= 534;
            } elseif ($is_gecko || $is_chrome || $is_IE || $is_opera && !wp_is_mobile()) {
                $wp_rich_edit = true;
            }
        }
    }
    /**
     * Filter whether the user can access the rich (Visual) editor.
     *
     * @since 2.1.0
     *
     * @param bool $wp_rich_edit Whether the user can access to the rich (Visual) editor.
     */
    return apply_filters('user_can_richedit', $wp_rich_edit);
}

WordPress Version: 3.7

/**
 * Whether the user should have a WYSIWIG editor.
 *
 * Checks that the user requires a WYSIWIG editor and that the editor is
 * supported in the users browser.
 *
 * @since 2.0.0
 *
 * @return bool
 */
function user_can_richedit()
{
    global $wp_rich_edit, $is_gecko, $is_opera, $is_safari, $is_chrome, $is_IE;
    if (!isset($wp_rich_edit)) {
        $wp_rich_edit = false;
        if (get_user_option('rich_editing') == 'true' || !is_user_logged_in()) {
            // default to 'true' for logged out users
            if ($is_safari) {
                $wp_rich_edit = !wp_is_mobile() || preg_match('!AppleWebKit/(\d+)!', $_SERVER['HTTP_USER_AGENT'], $match) && intval($match[1]) >= 534;
            } elseif ($is_gecko || $is_chrome || $is_IE || $is_opera && !wp_is_mobile()) {
                $wp_rich_edit = true;
            }
        }
    }
    return apply_filters('user_can_richedit', $wp_rich_edit);
}