[wp-trac] [WordPress Trac] #20854: functions.php on line 155 ?

WordPress Trac wp-trac at lists.automattic.com
Tue Jul 31 02:42:45 UTC 2012


#20854: functions.php on line 155 ?
-------------------------------+-----------------------------------
 Reporter:  leondari           |       Owner:  Nikolaos Raftopoulos
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Multisite          |     Version:  3.3.2
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+-----------------------------------

Comment (by SergeyBiryukov):

 I can reproduce in 3.4.1 with a custom user table which doesn't contain
 `spam` and `deleted` fields.
 `wp_update_network_counts()` then fails to update `user_count` site meta
 value:
 {{{
 SELECT COUNT(ID) as c FROM wp_users WHERE spam = '0' AND deleted = '0'
 Unknown column 'spam' in 'where clause'
 }}}
 `user_count` ends up being an empty string, which leads to the notice.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20854#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list