mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-11 22:29:48 +01:00
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:
parent
9900f35dd3
commit
f6cfa549fb
@ -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 );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user