[wp-trac] [WordPress Trac] #38319: Add $network_id parameter to filters in `get_network_option()`

WordPress Trac noreply at wordpress.org
Sun Oct 16 11:46:37 UTC 2016


#38319: Add $network_id parameter to filters in `get_network_option()`
--------------------------------+-----------------------------
 Reporter:  flixos90            |      Owner:
     Type:  enhancement         |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  Options, Meta APIs  |    Version:
 Severity:  normal              |   Keywords:  needs-patch
  Focuses:  multisite           |
--------------------------------+-----------------------------
 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()`.

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


More information about the wp-trac mailing list