From 4efa3e973d256eb3bff4f9e8735f366522a914a9 Mon Sep 17 00:00:00 2001 From: John Flatness Date: Fri, 27 Jan 2023 18:47:34 -0500 Subject: [PATCH] Fix class name casing --- functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions.php b/functions.php index a092c29..cb83367 100644 --- a/functions.php +++ b/functions.php @@ -34,7 +34,7 @@ function thanksroy_brighten($color, $steps) { */ function thanksroy_display_random_featured_records($type = null, $count = 2, $hasImage = null) { - $records = get_records(strtoupper($type), array('featured' => 1, + $records = get_records(ucfirst($type), array('featured' => 1, 'sort_field' => 'random', 'hasImage' => $hasImage), $count); @@ -54,4 +54,4 @@ function thanksroy_display_random_featured_records($type = null, $count = 2, $ha } } return $html; -} \ No newline at end of file +}