[wp-trac] [WordPress Trac] #12997: Call to a member function get_names() on a non-object in user.php

WordPress Trac wp-trac at lists.automattic.com
Thu Apr 15 07:57:39 UTC 2010


#12997: Call to a member function get_names() on a non-object in user.php
--------------------------+-------------------------------------------------
 Reporter:  ipstenu       |       Owner:     
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.0
Component:  General       |     Version:  3.0
 Severity:  normal        |    Keywords:     
--------------------------+-------------------------------------------------

Comment(by solarissmoke):

 The count_users() function has two "strategies", and the second strategy
 ('memory') doesn't use$wp_roles as it just queries the database directly.
 (However there are apparently other issues: []

 Perhaps an alternative solution is to get wp_version_check() to call
 count_users('memory')? This would avoid the need to have $wp_roles
 instantiated for all non-logged in users.

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


More information about the wp-trac mailing list