[wp-trac] [WordPress Trac] #14320: ms-function: get_user_count incorrect query
WordPress Trac
wp-trac at lists.automattic.com
Thu Jul 15 16:16:48 UTC 2010
#14320: ms-function: get_user_count incorrect query
--------------------------+-------------------------------------------------
Reporter: agentile | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Multisite | Version: 3.0
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
line 166:
$count = $wpdb->get_var( $wpdb->prepare("SELECT COUNT(ID) as c FROM
$wpdb->users WHERE spam = '0' AND deleted = '0'") );
spam and deleted columns don't exist in the users table...im guessing a
copy paste error from the get_blog_count() below it....unless I am
completely missing something.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14320>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list