Ticket #38351: 38351.2.diff
File 38351.2.diff, 1.2 KB (added by , 7 years ago) |
---|
-
src/wp-includes/ms-blogs.php
38 38 * @return string Full URL of the blog if found. Empty string if not. 39 39 */ 40 40 function get_blogaddress_by_id( $blog_id ) { 41 $bloginfo = get_ blog_details( (int) $blog_id );41 $bloginfo = get_site( (int) $blog_id ); 42 42 43 43 if ( empty( $bloginfo ) ) { 44 44 return ''; … … 266 266 $blog_id = get_current_blog_id(); 267 267 } 268 268 269 $details = get_ blog_details( $blog_id, false);269 $details = get_site( $blog_id ); 270 270 if ( ! $details ) { 271 271 // Make sure clean_blog_cache() gets the blog ID 272 272 // when the blog has been previously cached as … … 310 310 if ( is_object($details) ) 311 311 $details = get_object_vars($details); 312 312 313 $current_details = get_ blog_details($blog_id, false);313 $current_details = get_site( $blog_id ); 314 314 if ( empty($current_details) ) 315 315 return false; 316 316 … … 1038 1038 function get_blog_status( $id, $pref ) { 1039 1039 global $wpdb; 1040 1040 1041 $details = get_ blog_details( $id, false);1041 $details = get_site( $id ); 1042 1042 if ( $details ) 1043 1043 return $details->$pref; 1044 1044