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:
Andrew Nacin 2012-11-06 23:27:21 +00:00
parent 8d1e29d8b6
commit 1d1417ec55
1 changed files with 1 additions and 1 deletions

View File

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