diff --git a/lib/actions.php b/lib/actions.php index d429aea..d7a82f3 100644 --- a/lib/actions.php +++ b/lib/actions.php @@ -1,16 +1,5 @@ if there's posts - */ -function roots_feed_link() { - $count = wp_count_posts('post'); if ($count->publish > 0) { - echo "\n\t\n"; - } -} - -add_action('wp_head', 'roots_feed_link', -2); - /** * Add the asynchronous Google Analytics snippet from HTML5 Boilerplate * if an ID is defined in config.php diff --git a/lib/utils.php b/lib/utils.php index 233160e..8449d20 100644 --- a/lib/utils.php +++ b/lib/utils.php @@ -68,3 +68,8 @@ function is_element_empty($element) { $element = trim($element); return empty($element) ? false : true; } + +function has_posts() { + $count = wp_count_posts('post'); + return ($count->publish > 0) ? true : false; +} diff --git a/templates/head.php b/templates/head.php index 2b65031..b07f791 100644 --- a/templates/head.php +++ b/templates/head.php @@ -14,4 +14,8 @@ - \ No newline at end of file + + + + +