From 7cc92802a7cbed768c376a3a67cf83dc8d1f90a5 Mon Sep 17 00:00:00 2001 From: Ben Word Date: Thu, 28 Apr 2011 13:55:31 -0600 Subject: [PATCH] cleaning up formatting from previous commit --- includes/roots-cleanup.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/includes/roots-cleanup.php b/includes/roots-cleanup.php index b651b39..4594086 100644 --- a/includes/roots-cleanup.php +++ b/includes/roots-cleanup.php @@ -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\""; - } - - $output = implode(' ', $attributes); - $output = apply_filters('roots_language_attributes', $output); - echo $output; + $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; } add_filter('language_attributes', 'roots_language_attributes');