Changes between Initial Version and Version 1 of Ticket #35379, comment 19
- Timestamp:
- 05/06/2016 01:31:53 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #35379, comment 19
initial v1 6 6 Like @flixos90 I prefer to use only one function instead of using `sanitize_network_option`. It is because options in WordPress are dual-purpose and can be used both (single-site or multisite). Options name in single-site is the same as in the network and validated similarly. Using one function in this case would be much more user-friendly to me. 7 7 8 By using only one function and passing appropriate values in `$context` and ` @context_id`, we can easily process these options in a network mode (even though these options are still usable on a single site mode and validated the same.).8 By using only one function and passing appropriate values in `$context` and `$context_id`, we can easily process these options in a network mode (even though these options are still usable on a single site mode and validated the same.). 9 9 10 10 Cheers.