[wpmu-trac] Re: [WordPress MU Trac] #497: $wpdb->siteid is not set inside wpmu_new_blog hook when new user and blog are registered

WordPress MU Trac wpmu-trac at lists.automattic.com
Fri Nov 16 15:18:55 GMT 2007


#497: $wpdb->siteid is not set inside wpmu_new_blog hook when new user and blog
are registered
------------------------+---------------------------------------------------
 Reporter:  omry        |        Owner:  somebody  
     Type:  defect      |       Status:  closed    
 Priority:  normal      |    Milestone:            
Component:  component1  |      Version:            
 Severity:  normal      |   Resolution:  worksforme
 Keywords:              |  
------------------------+---------------------------------------------------
Changes (by donncha):

  * status:  new => closed
  * resolution:  => worksforme

Comment:

 I can't reproduce this. The following function hooking into wpmu_new_blog
 prints "1" to my error log:

 {{{
 function new_blog_debug( $blog_id, $user_id ) {
         global $wpdb;
         error_log( "siteid: " . print_r( $wpdb->siteid ) . "\n", 3,
 "/tmp/err.txt" );
 }
 add_action( 'wpmu_new_blog', 'new_blog_debug', 10, 2 );
 }}}

-- 
Ticket URL: <http://trac.mu.wordpress.org/ticket/497#comment:1>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser


More information about the wpmu-trac mailing list