WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #22090, comment 13


Ignore:
Timestamp:
10/25/12 21:14:17 (3 years ago)
Author:
wdfee
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #22090, comment 13

    initial v1  
    22 
    33I looked into the ms-settings.php and added two lines to the domain mapping plugins sunrise.php (not by donncha but by incsub), same effect :-) 
    4 if anybody is searching for this, I put it here... and contact the plugin author 
     4if anybody is searching for this, I put it here... and contact the plugin author[[BR]] 
     5 
     6around line 50  
    57{{{ 
    68if ( ! isset( $current_site->blog_id ) ) 
    7         $current_site->blog_id = $mapped_id; 
    8 }}} 
     9        $current_site->blog_id = $wpdb->get_var( $wpdb->prepare( "SELECT blog_id FROM $wpdb->blogs WHERE domain = %s AND path = %s", $current_site->domain, $current_site->path ) ); 
     10}}}