html_type_rss

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

WordPress Version: 6.3

/**
 * Displays the HTML type based on the blog setting.
 *
 * The two possible values are either 'xhtml' or 'html'.
 *
 * @since 2.2.0
 */
function html_type_rss()
{
    $type = get_bloginfo('html_type');
    if (str_contains($type, 'xhtml')) {
        $type = 'xhtml';
    } else {
        $type = 'html';
    }
    echo $type;
}

WordPress Version: 6.1

/**
 * Displays the HTML type based on the blog setting.
 *
 * The two possible values are either 'xhtml' or 'html'.
 *
 * @since 2.2.0
 */
function html_type_rss()
{
    $type = get_bloginfo('html_type');
    if (strpos($type, 'xhtml') !== false) {
        $type = 'xhtml';
    } else {
        $type = 'html';
    }
    echo $type;
}

WordPress Version: 3.9

/**
 * Display the HTML type based on the blog setting.
 *
 * The two possible values are either 'xhtml' or 'html'.
 *
 * @since 2.2.0
 */
function html_type_rss()
{
    $type = get_bloginfo('html_type');
    if (strpos($type, 'xhtml') !== false) {
        $type = 'xhtml';
    } else {
        $type = 'html';
    }
    echo $type;
}

WordPress Version: 3.7

/**
 * Display the HTML type based on the blog setting.
 *
 * The two possible values are either 'xhtml' or 'html'.
 *
 * @package WordPress
 * @subpackage Feed
 * @since 2.2.0
 */
function html_type_rss()
{
    $type = get_bloginfo('html_type');
    if (strpos($type, 'xhtml') !== false) {
        $type = 'xhtml';
    } else {
        $type = 'html';
    }
    echo $type;
}