Opened 9 years ago
Closed 9 years ago
#38602 closed defect (bug) (fixed)
WP_UnitTest_Factory_For_Network::get_object_by_id() calling deprecated wp_get_network()
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 4.7 | Priority: | normal |
| Severity: | normal | Version: | 4.6 |
| Component: | Networks and Sites | Keywords: | has-patch |
| Focuses: | multisite | Cc: |
Description
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.)
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
Good catch, thanks @johnjamesjacoby.