cleaning up formatting from previous commit
This commit is contained in:
@@ -105,17 +105,17 @@ add_action('pre_get_posts', 'roots_relative_feed_urls' );
|
|||||||
|
|
||||||
// remove dir and set lang="en" as default (rather than en-US)
|
// remove dir and set lang="en" as default (rather than en-US)
|
||||||
function roots_language_attributes() {
|
function roots_language_attributes() {
|
||||||
$attributes = array();
|
$attributes = array();
|
||||||
$output = '';
|
$output = '';
|
||||||
if (!defined('WP_LANG')) {
|
if (!defined('WP_LANG')) {
|
||||||
$attributes[] = "lang=\"en\"";
|
$attributes[] = "lang=\"en\"";
|
||||||
} else if ($lang = get_bloginfo('language')) {
|
} else if ($lang = get_bloginfo('language')) {
|
||||||
$attributes[] = "lang=\"$lang\"";
|
$attributes[] = "lang=\"$lang\"";
|
||||||
}
|
}
|
||||||
|
|
||||||
$output = implode(' ', $attributes);
|
$output = implode(' ', $attributes);
|
||||||
$output = apply_filters('roots_language_attributes', $output);
|
$output = apply_filters('roots_language_attributes', $output);
|
||||||
echo $output;
|
echo $output;
|
||||||
}
|
}
|
||||||
|
|
||||||
add_filter('language_attributes', 'roots_language_attributes');
|
add_filter('language_attributes', 'roots_language_attributes');
|
||||||
|
|||||||
Reference in New Issue
Block a user