Ticket #457: wpmu-settings.diff
| File wpmu-settings.diff, 1.2 kB (added by ktlee, 1 year ago) |
|---|
-
wpmu-settings.php
old new 45 45 $current_site = $sites[0]; 46 46 die( "That blog does not exist. Please try <a href='http://{$current_site->domain}{$current_site->path}'>http://{$current_site->domain}{$current_site->path}</a>" ); 47 47 } else { 48 return 0; // add by KT 48 49 die( "No WPMU site defined on this host. If you are the owner of this site, please check <a href='http://trac.mu.wordpress.org/wiki/DebuggingWpmu'>Debugging WPMU</a> for further assistance." ); 49 50 } 50 51 } else { … … 76 77 $path = $current_site->path; 77 78 } else { 78 79 $current_site = wpmu_current_site(); 80 if($current_site ==0) 81 { 82 $tmp=true; 83 $current_site = 1; 84 } 79 85 } 80 86 81 87 … … 83 89 $current_blog = $wpdb->get_row("SELECT * FROM $wpdb->blogs WHERE domain = '$domain'"); 84 90 if( $current_blog != null ) { 85 91 $current_site = $wpdb->get_row("SELECT * FROM $wpdb->site WHERE id='{$current_blog->site_id}'"); 92 if($tmp) $current_site->domain= $domain; 86 93 } else { 87 94 $blogname = substr( $domain, 0, strpos( $domain, '.' ) ); 88 95 }
