Ticket #20589: ms-functions.diff
File ms-functions.diff, 520 bytes (added by , 13 years ago) |
---|
-
ms-functions.php
1085 1085 */ 1086 1086 function domain_exists($domain, $path, $site_id = 1) { 1087 1087 global $wpdb; 1088 1089 // To match insert_blog 1090 $path = trailingslashit($path); 1091 $site_id = (int) $site_id; 1092 1088 1093 return $wpdb->get_var( $wpdb->prepare("SELECT blog_id FROM $wpdb->blogs WHERE domain = %s AND path = %s AND site_id = %d", $domain, $path, $site_id) ); 1089 1094 } 1090 1095