diff --git c/src/wp-includes/comment-template.php w/src/wp-includes/comment-template.php
index 56e0ccda54..e97229f5f6 100644
c
|
w
|
function comments_open( $post_id = null ) { |
1201 | 1201 | * @param bool $open Whether the current post is open for comments. |
1202 | 1202 | * @param int|WP_Post $post_id The post ID or WP_Post object. |
1203 | 1203 | */ |
1204 | | return apply_filters( 'comments_open', $open, $_post->ID ); |
| 1204 | return apply_filters( 'comments_open', $open, $post_id ); |
1205 | 1205 | } |
1206 | 1206 | |
1207 | 1207 | /** |
… |
… |
function pings_open( $post_id = null ) { |
1226 | 1226 | * @param bool $open Whether the current post is open for pings. |
1227 | 1227 | * @param int|WP_Post $post_id The post ID or WP_Post object. |
1228 | 1228 | */ |
1229 | | return apply_filters( 'pings_open', $open, $_post->ID ); |
| 1229 | return apply_filters( 'pings_open', $open, $post_id ); |
1230 | 1230 | } |
1231 | 1231 | |
1232 | 1232 | /** |