Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #55942, comment 68


Ignore:
Timestamp:
05/04/2023 10:58:23 PM (21 months ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #55942, comment 68

    initial v1  
    33> * If we put a new parameter on `get_option()` for the type, that's a clunky API: A single option may be retrieved in several places. Having to remember in every single function call to put the right `$type`...
    44
    5 I tend to disagree. This doesn't sound like a problem. If you can remember (copy) the option name, you certainly can remember (copy) the type and eventually the default walue too :)
     5I tend to disagree. This doesn't sound like a problem. If you can remember (copy) the option name, you certainly can remember (copy) the type and eventually the default value too :)
    66
    77> * Using `register_setting()` is more appropriate