From 762d1623e292536220b6a983cd54aa5b5333003c Mon Sep 17 00:00:00 2001 From: Tetrakern <26898880+Tetrakern@users.noreply.github.com> Date: Sun, 10 Nov 2024 15:17:14 +0100 Subject: [PATCH] Remove superfluous function --- includes/functions/_helpers-query.php | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/includes/functions/_helpers-query.php b/includes/functions/_helpers-query.php index a32159c5..9a28c58b 100644 --- a/includes/functions/_helpers-query.php +++ b/includes/functions/_helpers-query.php @@ -938,31 +938,6 @@ if ( ! function_exists( 'fictioneer_sql_get_story_chapter_relationship_data' ) ) } } -/** - * Returns comment count of a story - * - * @since 5.26.0 - * - * @global wpdb $wpdb WordPress database object. - * - * @param int $post_id Post ID. - * - * @return int Comment count. - */ - -function fictioneer_sql_get_comment_count( $post_id ) { - global $wpdb; - - $query = $wpdb->prepare( - "SELECT comment_count - FROM {$wpdb->posts} - WHERE ID = %d", - $post_id - ); - - return $wpdb->get_var( $query ); -} - /** * Updates the comment count of a post *