# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
# It uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
old
|
new
|
|
1293 | 1293 | } |
1294 | 1294 | |
1295 | 1295 | function wpmu_create_blog($domain, $path, $title, $user_id, $meta = '', $site_id = 1) { |
| 1296 | global $wpdb, $wp_queries; |
1296 | 1297 | $domain = preg_replace( "/\s+/", '', sanitize_user( $domain, true ) ); |
1297 | 1298 | if( constant( 'VHOST' ) == 'yes' ) |
1298 | 1299 | $domain = str_replace( '@', '', $domain ); |
… |
… |
|
1314 | 1315 | |
1315 | 1316 | switch_to_blog($blog_id); |
1316 | 1317 | |
| 1318 | if($wp_queries){ |
| 1319 | $pattern = '/' . $wpdb->base_prefix . '(\d+)/'; |
| 1320 | $prefix = $wpdb->base_prefix . $blog_id; |
| 1321 | $wp_queries = preg_replace($pattern,$prefix, $wp_queries); |
| 1322 | } |
| 1323 | |
1317 | 1324 | install_blog($blog_id, $title); |
1318 | 1325 | |
1319 | 1326 | install_blog_defaults($blog_id, $user_id); |