cleaning up formatting from previous commit

This commit is contained in:
Ben Word
2011-04-28 13:55:31 -06:00
parent edf5b263fb
commit 7cc92802a7

View File

@@ -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)
function roots_language_attributes() {
$attributes = array();
$output = '';
if (!defined('WP_LANG')) {
$attributes[] = "lang=\"en\"";
} else if ($lang = get_bloginfo('language')) {
$attributes[] = "lang=\"$lang\"";
}
$attributes = array();
$output = '';
if (!defined('WP_LANG')) {
$attributes[] = "lang=\"en\"";
} else if ($lang = get_bloginfo('language')) {
$attributes[] = "lang=\"$lang\"";
}
$output = implode(' ', $attributes);
$output = apply_filters('roots_language_attributes', $output);
echo $output;
$output = implode(' ', $attributes);
$output = apply_filters('roots_language_attributes', $output);
echo $output;
}
add_filter('language_attributes', 'roots_language_attributes');