Changeset 22108 for trunk/wp-includes/ms-blogs.php
- Timestamp:
- 10/04/2012 12:40:09 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/ms-blogs.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/ms-blogs.php
r22092 r22108 119 119 * @since MU 120 120 * 121 * @param int|string|array $fields A blog ID, a blog slug, or an array of fields to query against. 121 * @param int|string|array $fields A blog ID, a blog slug, or an array of fields to query against. Optional. If not specified the current blog ID is used. 122 122 * @param bool $get_all Whether to retrieve all details or only the details in the blogs table. Default is true. 123 123 * @return object Blog details. 124 124 */ 125 function get_blog_details( $fields , $get_all = true ) {125 function get_blog_details( $fields = null, $get_all = true ) { 126 126 global $wpdb; 127 127 … … 167 167 } 168 168 } else { 169 if ( !is_numeric( $fields ) ) 169 if ( ! $fields ) 170 $blog_id = get_current_blog_id(); 171 elseif ( ! is_numeric( $fields ) ) 170 172 $blog_id = get_id_from_blogname( $fields ); 171 173 else
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)