Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #55942, comment 58


Ignore:
Timestamp:
04/30/2023 08:59:19 PM (7 months ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #55942, comment 58

    v1 v2  
    88> Both `register_[setting|meta]()` and typed `[get|update]_[option|meta]()` could be enhanced support both 'number', 'int[eger]' and 'float'.
    99
    10 Thinking it would perhaps be better to keep it simple and limit the "data type translation" to one place. I.e. replace `number` with `float` in `register_setting()` and `register_meta()`.
     10Thinking it would perhaps be better to keep it simple and limit the "data type translation" to one place. I.e. replace `number` with `float` in registered settings and registered meta when retrieving the values.
    1111
    1212> The register functions are for full and flexible sanitation and validation...