[wp-trac] [WordPress Trac] #38602: WP_UnitTest_Factory_For_Network::get_object_by_id() calling deprecated wp_get_network()

WordPress Trac noreply at wordpress.org
Tue Nov 1 03:36:42 UTC 2016


#38602: WP_UnitTest_Factory_For_Network::get_object_by_id() calling deprecated
wp_get_network()
--------------------------------+-----------------------------
 Reporter:  johnjamesjacoby     |      Owner:
     Type:  defect (bug)        |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  Networks and Sites  |    Version:  4.6
 Severity:  normal              |   Keywords:  has-patch
  Focuses:  multisite           |
--------------------------------+-----------------------------
 The `WP_UnitTest_Factory_For_Network` class's `get_object_by_id()` method
 is calling a function that was deprecated in WordPress 4.6:
 `wp_get_network()`.

 It can now safely be replaced with a call to `get_network()` instead.

 (Discovered from failing tests in the WP Multi Network plugin.)

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38602>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list