From be189072bc8c7d00eac5c0876ffa18e72cc629cc Mon Sep 17 00:00:00 2001 From: danpros Date: Sun, 17 Dec 2023 18:29:31 +0700 Subject: [PATCH] Update functions.php --- system/includes/functions.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/system/includes/functions.php b/system/includes/functions.php index eded31f..226f74e 100644 --- a/system/includes/functions.php +++ b/system/includes/functions.php @@ -515,7 +515,7 @@ function find_draft($year, $month, $name) } } -// Find draft. +// Find scheduled post. function find_scheduled($year, $month, $name) { $posts = get_scheduled_posts(); @@ -615,7 +615,7 @@ function get_category_info($category) $desc = new stdClass; - // The static page URL + // The filename $url= pathinfo($v, PATHINFO_FILENAME); $desc->url = site_url() . 'category/' . $url; @@ -666,7 +666,6 @@ function default_category() } // Return category list - function category_list($custom = null) { $dir = "cache/widget"; @@ -1192,7 +1191,7 @@ function get_draftcount($var) return count($tmp); } -// Return draft count. Matching $var +// Return scheduled post count. Matching $var function get_scheduledcount($var) { $posts = get_scheduled_posts(); @@ -1302,7 +1301,7 @@ function recent_posts($custom = null, $count = null) } } -// Return recent posts lists +// Return recent type lists function recent_type($type, $custom = null, $count = null) { if (empty($count)) {