From 7ff27f2345ed6b42ae75d5df52a3082e1baac6b9 Mon Sep 17 00:00:00 2001 From: Matthias Pfefferle Date: Wed, 25 Sep 2024 15:47:05 +0200 Subject: [PATCH] Update includes/functions.php --- includes/functions.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/includes/functions.php b/includes/functions.php index 7bd2903fd..767bf7215 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -1177,11 +1177,6 @@ function generate_post_summary( $post, $length = 500 ) { return ''; } - $content_warning = get_content_warning( $post->ID ); - if ( $content_warning ) { - return $content_warning; - } - $content = \sanitize_post_field( 'post_excerpt', $post->post_excerpt, $post->ID ); if ( $content ) {