Always return an integer from post_exists(). props barrykooij. fixes #21607.
git-svn-id: https://develop.svn.wordpress.org/trunk@22410 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
8d1e29d8b6
commit
1d1417ec55
@ -498,7 +498,7 @@ function post_exists($title, $content = '', $date = '') {
|
||||
}
|
||||
|
||||
if ( !empty ( $args ) )
|
||||
return $wpdb->get_var( $wpdb->prepare($query, $args) );
|
||||
return (int) $wpdb->get_var( $wpdb->prepare($query, $args) );
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user