Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #35379, comment 19


Ignore:
Timestamp:
05/06/2016 01:31:53 AM (9 years ago)
Author:
codex-m
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35379, comment 19

    initial v1  
    66Like @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.
    77
    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.).
     8By 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.).
    99
    1010Cheers.