Ticket #21607: post.php.patch
File post.php.patch, 677 bytes (added by , 12 years ago) |
---|
-
wp-admin/includes/post.php
488 488 * @param string $title Post title 489 489 * @param string $content Optional post content 490 490 * @param string $date Optional post date 491 * @return int Post ID if post exists, 0otherwise.491 * @return int Post ID if post exists, null otherwise. 492 492 */ 493 493 function post_exists($title, $content = '', $date = '') { 494 494 global $wpdb; … … 518 518 if ( !empty ( $args ) ) 519 519 return $wpdb->get_var( $wpdb->prepare($query, $args) ); 520 520 521 return 0;521 return null; 522 522 } 523 523 524 524 /**