Opened 9 years ago
Closed 9 years ago
#33814 closed enhancement (duplicate)
Add network param to site option functions
Reported by: | spacedmonkey | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 2.8 |
Component: | Networks and Sites | Keywords: | has-patch needs-testing needs-unit-tests |
Focuses: | multisite | Cc: |
Description
Add a param of network id to get_site_option / add_site_option / update_site_option / delete_site_option functions.
Attachments (1)
Change History (4)
#1
@
9 years ago
- Keywords has-patch needs-testing needs-unit-tests added
- Milestone changed from Awaiting Review to Future Release
#2
@
9 years ago
I wonder if it might be better to just add switch_to_network / restore_current_network functions. With those, users could just switch network, then use get_site_options as normal. The only problem is that those helper functions seem to be blocked in this ticket #29411 .
Also +1 on the name change to *_network_option() . Also willing to submit a patch for that if you want.
Note: See
TracTickets for help on using
tickets.
Excellent!
Related #28290 - I wonder if now could be a time to move to
*_network_option()
and then convert all*_site_option
to wrap. :)From On API and Naming: