Make WordPress Core


Ignore:
Timestamp:
04/06/2007 03:34:01 AM (17 years ago)
Author:
rob1n
Message:

Add the argument back in. Whoops.

File:
1 edited

Legend:

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

    r5190 r5192  
    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());
     13    return $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->posts WHERE post_author = '$userid' AND post_type = 'post' " . get_private_posts_cap_sql('post'));
    1414}
    1515
Note: See TracChangeset for help on using the changeset viewer.