#38319 closed enhancement (fixed)
Add $network_id parameter to filters in `get_network_option()`
| Reported by: | flixos90 | Owned by: | jeremyfelt |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.7 |
| Component: | Options, Meta APIs | Version: | |
| Severity: | normal | Keywords: | has-patch has-dev-note |
| Cc: | Focuses: | multisite |
Description
I just noticed that the filters in get_network_option() do not receive the network ID passed to the function. This makes these filters useless for quite a few use-cases (for example when overriding the process of receiving a specific option via pre_site_option_{$option}).
The network ID should be added as a parameter to all these filters.
I will open similar tickets for the filters and actions in add_network_option(), update_network_option() and delete_network_option().
Attachments (1)
Change History (5)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
38319.diff introduces the
$network_idparameter to the filters inget_network_option().