Ticket #21607: post.php.patch

File post.php.patch, 677 bytes (added by barrykooij, 9 months ago)

post.php patch

  • wp-admin/includes/post.php

     
    488488 * @param string $title Post title 
    489489 * @param string $content Optional post content 
    490490 * @param string $date Optional post date 
    491  * @return int Post ID if post exists, 0 otherwise. 
     491 * @return int Post ID if post exists, null otherwise. 
    492492 */ 
    493493function post_exists($title, $content = '', $date = '') { 
    494494        global $wpdb; 
     
    518518        if ( !empty ( $args ) ) 
    519519                return $wpdb->get_var( $wpdb->prepare($query, $args) ); 
    520520 
    521         return 0; 
     521        return null; 
    522522} 
    523523 
    524524/**