From 671cb95ebc981f6151db773634973fada35c58e2 Mon Sep 17 00:00:00 2001 From: Scott Walkinshaw Date: Thu, 20 Sep 2012 12:42:46 -0600 Subject: [PATCH] Replace has_posts with built-in have_posts --- lib/utils.php | 5 ----- templates/head.php | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/utils.php b/lib/utils.php index 8449d20..233160e 100644 --- a/lib/utils.php +++ b/lib/utils.php @@ -68,8 +68,3 @@ 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 028374d..c3ffe91 100644 --- a/templates/head.php +++ b/templates/head.php @@ -15,7 +15,7 @@ - +