html_type_rss

函数


html_type_rss ( No parameters )
定义位置
  • wp-includes/feed.php
    , line 449
引入
2.2.0
弃用

Displays the HTML type based on the blog setting.

The two possible values are either ‘xhtml’ or ‘html’.

function html_type_rss() {
	$type = get_bloginfo( 'html_type' );
	if ( strpos( $type, 'xhtml' ) !== false ) {
		$type = 'xhtml';
	} else {
		$type = 'html';
	}
	echo $type;
}