[wp-trac] [WordPress Trac] #16225: Undefined properties in ms-functions.php on line 93

WordPress Trac wp-trac at lists.automattic.com
Sun Jan 16 17:11:51 UTC 2011


#16225: Undefined properties in ms-functions.php on line 93
--------------------------+-----------------------------
 Reporter:  garyc40       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  Import        |     Version:  3.1
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |
--------------------------+-----------------------------

Comment (by garyc40):

 Here's the output:

 {{{
 object(stdClass)[48]
   public 'userblog_id' => int 1
   public 'blogname' => string 'WP Test' (length=7)
   public 'domain' => string 'localhost' (length=9)
   public 'path' => string '/wptest/' (length=8)
   public 'site_id' => string '1' (length=1)
   public 'siteurl' => string 'http://localhost/wptest' (length=23)
 }}}

 The weird thing is that {{{$primary_blog}}} is an empty string. Perhaps
 the importer I used (WordPress importer) didn't properly update the
 'primary_blog' user meta?

 I repeated the steps to reproduce above, and try to {{{get_user_meta()}}}
 of the imported users right after importing. The {{{primary_blog}}} is
 always empty string.

 Or perhaps line 79 in {{{get_active_blog_for_user()}}} is the problem. It
 seems to work when I change

 {{{
 if ( false !== $primary_blog ) {
 }}}

 to

 {{{
 if ( ! $primary_blog ) {
 }}}

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


More information about the wp-trac mailing list