[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
Wed Apr 14 19:05:23 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 ryan):
As discussed with nacin, the cost this adds is the memory overhead of
having $wp_roles instantiated for page view for non-logged in users, which
is most visitors to the site. It is currently instantiated only for
logged in users. If we want to avoid this overhead, we can either check if
the object isset in count_users() and set it if not or move all of the
isset checks into an _wp_roles_get_object() style function and call that
function in count_users().
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12997#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list