Skip to content

Commit

Permalink
Fix class name casing
Browse files Browse the repository at this point in the history
  • Loading branch information
zerocrates committed Jan 27, 2023
1 parent 90afecb commit 4efa3e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -54,4 +54,4 @@ function thanksroy_display_random_featured_records($type = null, $count = 2, $ha
}
}
return $html;
}
}

0 comments on commit 4efa3e9

Please sign in to comment.