Multisite: Use `get_network()` in `WP_UnitTest_Factory_For_Network`.

`wp_get_network()` was deprecated in 4.6.

Props johnjamesjacoby.
Fixes #38602.


git-svn-id: https://develop.svn.wordpress.org/trunk@39071 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jeremy Felt 2016-11-01 16:51:26 +00:00
parent ee31735401
commit 459fe129a5
1 changed files with 1 additions and 1 deletions

View File

@ -29,6 +29,6 @@ class WP_UnitTest_Factory_For_Network extends WP_UnitTest_Factory_For_Thing {
function update_object( $network_id, $fields ) {} function update_object( $network_id, $fields ) {}
function get_object_by_id( $network_id ) { function get_object_by_id( $network_id ) {
return wp_get_network( $network_id ); return get_network( $network_id );
} }
} }