Changeset 34097 for trunk/src/wp-includes/ms-load.php
- Timestamp:
- 09/13/2015 11:30:57 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/ms-load.php
r33999 r34097 259 259 * 260 260 * @since 3.9.0 261 * 262 * @global wpdb $wpdb 261 * @since 4.4.0 Converted to leverage WP_Network 263 262 * 264 263 * @param object|int $network The network's database row or ID. 265 * @return object|false Object containing network information if found, false if not.264 * @return WP_Network|false Object containing network information if found, false if not. 266 265 */ 267 266 function wp_get_network( $network ) { 268 global $wpdb;269 270 267 if ( ! is_object( $network ) ) { 271 $network = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM $wpdb->site WHERE id = %d", $network ) ); 272 if ( ! $network ) { 273 return false; 274 } 268 $network = WP_Network::get_instance( $network ); 269 } else { 270 $network = new WP_Network( $network ); 275 271 } 276 272
Note: See TracChangeset
for help on using the changeset viewer.