diff --git a/wp-includes/comment-template.php b/wp-includes/comment-template.php index 6e4e5cccd4..6e2ec62dcd 100644 --- a/wp-includes/comment-template.php +++ b/wp-includes/comment-template.php @@ -582,11 +582,11 @@ function comments_open( $post_id=NULL ) { * @param int $post_id An optional post ID to check instead of the current post. * @return bool True if pings are accepted */ -function pings_open( $post_id=NULL ) { +function pings_open( $post_id = NULL ) { $_post = get_post($post_id); - $open = ( 'open' == $post->ping_status ); + $open = ( 'open' == $_post->ping_status ); return apply_filters( 'pings_open', $open, $post_id ); }