Make WordPress Core

Changeset 5194


Ignore:
Timestamp:
04/06/2007 02:53:46 PM (17 years ago)
Author:
rob1n
Message:

Add AND. fixes #4101

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/user.php

    r5192 r5194  
    1111    global $wpdb;
    1212    $userid = (int) $userid;
    13     return $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->posts WHERE post_author = '$userid' AND post_type = 'post' " . get_private_posts_cap_sql('post'));
     13    return $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->posts WHERE post_author = '$userid' AND post_type = 'post' AND " . get_private_posts_cap_sql('post'));
    1414}
    1515
Note: See TracChangeset for help on using the changeset viewer.