Ticket #37553: 37553.diff
File 37553.diff, 1.5 KB (added by , 8 years ago) |
---|
-
src/wp-includes/ms-load.php
134 134 } 135 135 136 136 /** 137 * Retrieve an object containing information about the requested network.138 *139 * @since 3.9.0140 *141 * @internal In 4.6.0, converted to use get_network()142 *143 * @param object|int $network The network's database row or ID.144 * @return WP_Network|false Object containing network information if found, false if not.145 */146 function wp_get_network( $network ) {147 $network = get_network( $network );148 if ( null === $network ) {149 return false;150 }151 152 return $network;153 }154 155 /**156 137 * Retrieve a site object by its domain and path. 157 138 * 158 139 * @since 3.9.0 … … 542 523 _deprecated_function( __FUNCTION__, '3.9.0' ); 543 524 return $current_site; 544 525 } 526 527 /** 528 * Retrieve an object containing information about the requested network. 529 * 530 * @since 3.9.0 531 * @deprecated 4.7.0 Use `get_network()` 532 * @see get_network() 533 * 534 * @internal In 4.6.0, converted to use get_network() 535 * 536 * @param object|int $network The network's database row or ID. 537 * @return WP_Network|false Object containing network information if found, false if not. 538 */ 539 function wp_get_network( $network ) { 540 _deprecated_function( __FUNCTION__, '4.7.0', 'get_network()' ); 541 542 $network = get_network( $network ); 543 if ( null === $network ) { 544 return false; 545 } 546 547 return $network; 548 }