[wp-trac] [WordPress Trac] #15458: Lazy-load usermeta into the user object

WordPress Trac wp-trac at lists.automattic.com
Wed Dec 14 17:45:40 UTC 2011


#15458: Lazy-load usermeta into the user object
----------------------------------------+---------------------
 Reporter:  nacin                       |       Owner:  nacin
     Type:  enhancement                 |      Status:  closed
 Priority:  normal                      |   Milestone:  3.3
Component:  Performance                 |     Version:
 Severity:  normal                      |  Resolution:  fixed
 Keywords:  has-patch needs-unit-tests  |
----------------------------------------+---------------------
Changes (by jk3us):

 * cc: jk3us (added)


Comment:

 It looks like the patch for this has introduced some problems for
 installations that don't use a base_prefix.  In WP 3.3, line 699 is
 causing two problems.  First, a PHP warning is thrown by searching an
 empty string with strpos.  Also, the "My sites" menu only contains the
 first site in that case, ignoring the rest.  Checking the strlen of
 $wpdb->base_prefix before the strpos call fixes both of these, and appears
 to be what was done before this change was made.

 See [http://wordpress.org/support/topic/wp-33-upgrade-error-
 functionstrpos-empty-delimiter?replies=6 these]
 [http://wordpress.org/support/topic/strpos-empty-delimiter?replies=7
 three] [http://wordpress.org/support/topic/my-sites-no-longer-lists-all-
 my-sites?replies=9 threads].

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


More information about the wp-trac mailing list