A WordPress-centric search engine for devs and theme authors



locale_stylesheet ›

Since2.1.0
Deprecatedn/a
locale_stylesheet ( No parameters )
Defined at:
Codex:

Display localized stylesheet link element.



Source

function locale_stylesheet() {
	$stylesheet = get_locale_stylesheet_uri();
	if ( empty( $stylesheet ) ) {
		return;
	}

	$type_attr = current_theme_supports( 'html5', 'style' ) ? '' : ' type="text/css"';

	printf(
		'<link rel="stylesheet" href="%s"%s media="screen" />',
		$stylesheet,
		$type_attr
	);
}