Opened 10 years ago
Closed 10 years ago
#38602 closed defect (bug) (fixed)
WP_UnitTest_Factory_For_Network::get_object_by_id() calling deprecated wp_get_network()
| Reported by: | johnjamesjacoby | Owned by: | jeremyfelt |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.7 |
| Component: | Networks and Sites | Version: | 4.6 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | multisite |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Good catch, thanks @johnjamesjacoby.