From d0806eb11cce0b75bcd706741f3cd41a342b2f9b Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 13 Feb 2008 06:39:45 +0000 Subject: [PATCH] Fix variable name typo. Props reinkim. fixes #5834 git-svn-id: https://develop.svn.wordpress.org/trunk@6802 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/comment-template.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ); }