[wp-trac] [WordPress Trac] #44895: Outsource network option handling from `populate_network()` to a new `populate_network_meta()`
WordPress Trac
noreply at wordpress.org
Wed Sep 5 08:09:16 UTC 2018
#44895: Outsource network option handling from `populate_network()` to a new
`populate_network_meta()`
-----------------------------+------------------------------------------
Reporter: flixos90 | Owner: flixos90
Type: enhancement | Status: assigned
Priority: normal | Milestone: 5.0
Component: Upgrade/Install | Version:
Severity: normal | Keywords: needs-patch needs-unit-tests
Focuses: multisite |
-----------------------------+------------------------------------------
Currently, `populate_network()` has too many responsibilities. Populating
network meta is an atomic part of it which can easily be outsourced.
Furthermore, a new `populate_network_meta()` function could support an
optional `$meta` parameter to pass custom metadata, and that bit could
finally be unit-tested. This came up during work on #41333.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44895>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list