diff --git a/inc/actions.php b/inc/actions.php index aa060a2..7f2c84d 100644 --- a/inc/actions.php +++ b/inc/actions.php @@ -1,5 +1,8 @@ if there's posts + */ function roots_feed_link() { $count = wp_count_posts('post'); if ($count->publish > 0) { echo "\n\t\n"; @@ -8,11 +11,16 @@ function roots_feed_link() { add_action('roots_head', 'roots_feed_link'); +/** + * Add the asynchronous Google Analytics snippet from HTML5 Boilerplate + * if an ID is defined in config.php + * + * @link mathiasbynens.be/notes/async-analytics-snippet + */ function roots_google_analytics() { - $roots_google_analytics_id = GOOGLE_ANALYTICS_ID; - if ($roots_google_analytics_id !== '') { + if (GOOGLE_ANALYTICS_ID) { echo "\n\t