WordPress.org

Make WordPress Core

Changeset 22410


Ignore:
Timestamp:
11/06/2012 11:27:21 PM (6 years ago)
Author:
nacin
Message:

Always return an integer from post_exists(). props barrykooij. fixes #21607.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/post.php

    r22136 r22410  
    499499
    500500    if ( !empty ( $args ) )
    501         return $wpdb->get_var( $wpdb->prepare($query, $args) );
     501        return (int) $wpdb->get_var( $wpdb->prepare($query, $args) );
    502502
    503503    return 0;
Note: See TracChangeset for help on using the changeset viewer.