rich_edit_exists

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

WordPress Version: 4.9

/**
 * Determine if TinyMCE is available.
 *
 * Checks to see if the user has deleted the tinymce files to slim down
 * their WordPress installation.
 *
 * @since 2.1.0
 * @deprecated 3.9.0
 *
 * @return bool Whether TinyMCE exists.
 */
function rich_edit_exists()
{
    global $wp_rich_edit_exists;
    _deprecated_function(__FUNCTION__, '3.9.0');
    if (!isset($wp_rich_edit_exists)) {
        $wp_rich_edit_exists = file_exists(ABSPATH . WPINC . '/js/tinymce/tinymce.js');
    }
    return $wp_rich_edit_exists;
}

WordPress Version: 4.6

/**
 * Determine if TinyMCE is available.
 *
 * Checks to see if the user has deleted the tinymce files to slim down
 * their WordPress install.
 *
 * @since 2.1.0
 * @deprecated 3.9.0
 *
 * @return bool Whether TinyMCE exists.
 */
function rich_edit_exists()
{
    global $wp_rich_edit_exists;
    _deprecated_function(__FUNCTION__, '3.9.0');
    if (!isset($wp_rich_edit_exists)) {
        $wp_rich_edit_exists = file_exists(ABSPATH . WPINC . '/js/tinymce/tinymce.js');
    }
    return $wp_rich_edit_exists;
}

WordPress Version: 3.9

/**
 * Determine if TinyMCE is available.
 *
 * Checks to see if the user has deleted the tinymce files to slim down
 * their WordPress install.
 *
 * @since 2.1.0
 * @deprecated 3.9.0
 *
 * @return bool Whether TinyMCE exists.
 */
function rich_edit_exists()
{
    global $wp_rich_edit_exists;
    _deprecated_function(__FUNCTION__, '3.9');
    if (!isset($wp_rich_edit_exists)) {
        $wp_rich_edit_exists = file_exists(ABSPATH . WPINC . '/js/tinymce/tinymce.js');
    }
    return $wp_rich_edit_exists;
}

WordPress Version: 3.7

/**
 * Determine if TinyMCE is available.
 *
 * Checks to see if the user has deleted the tinymce files to slim down there WordPress install.
 *
 * @since 2.1.0
 *
 * @return bool Whether TinyMCE exists.
 */
function rich_edit_exists()
{
    global $wp_rich_edit_exists;
    if (!isset($wp_rich_edit_exists)) {
        $wp_rich_edit_exists = file_exists(ABSPATH . WPINC . '/js/tinymce/tiny_mce.js');
    }
    return $wp_rich_edit_exists;
}