diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php index 5ce1064922..f4e656363a 100644 --- a/wp-admin/includes/post.php +++ b/wp-admin/includes/post.php @@ -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; }