Skip to content

Commit 4df2101

Browse files
committed
Use int of comment_count since string
1 parent dfff050 commit 4df2101

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-includes/general-template.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3348,7 +3348,7 @@ function feed_links_extra( $args = array() ) {
33483348
*/
33493349
$show_post_comments_feed = apply_filters( 'feed_links_extra_show_post_comments_feed', $show_comments_feed );
33503350

3351-
if ( $show_post_comments_feed && ( comments_open( $post ) || pings_open( $post ) || $post->comment_count > 0 ) ) {
3351+
if ( $show_post_comments_feed && ( comments_open( $post ) || pings_open( $post ) || (int) $post->comment_count > 0 ) ) {
33523352
$title = sprintf(
33533353
$args['singletitle'],
33543354
get_bloginfo( 'name' ),

0 commit comments

Comments
 (0)