Fix variable name typo. Props reinkim. fixes #5834

git-svn-id: https://develop.svn.wordpress.org/trunk@6802 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-02-13 06:39:45 +00:00
parent 4b670951fe
commit d0806eb11c
1 changed files with 2 additions and 2 deletions

View File

@ -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 );
}