remove_editor_styles

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

WordPress Version: 4.3

/**
 * Removes all visual editor stylesheets.
 *
 * @since 3.1.0
 *
 * @global array $editor_styles
 *
 * @return bool True on success, false if there were no stylesheets to remove.
 */
function remove_editor_styles()
{
    if (!current_theme_supports('editor-style')) {
        return false;
    }
    _remove_theme_support('editor-style');
    if (is_admin()) {
        $GLOBALS['editor_styles'] = array();
    }
    return true;
}

WordPress Version: 3.7

/**
 * Removes all visual editor stylesheets.
 *
 * @since 3.1.0
 *
 * @return bool True on success, false if there were no stylesheets to remove.
 */
function remove_editor_styles()
{
    if (!current_theme_supports('editor-style')) {
        return false;
    }
    _remove_theme_support('editor-style');
    if (is_admin()) {
        $GLOBALS['editor_styles'] = array();
    }
    return true;
}