From 25982f12b3b88c36dca4c43d7be9c8514d1cb14b Mon Sep 17 00:00:00 2001 From: Ben Word Date: Tue, 17 Jul 2012 19:23:35 -0500 Subject: [PATCH] Add code comments --- inc/actions.php | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) 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