Fix variable name typo. Props reinkim. fixes #5834

git-svn-id: http://svn.automattic.com/wordpress/trunk@6802 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-02-13 06:39:45 +00:00
parent 9900f35dd3
commit f6cfa549fb

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