[wp-trac] [WordPress Trac] #55942: Add a "type" field to the meta and options tables
WordPress Trac
noreply at wordpress.org
Mon Oct 24 13:24:14 UTC 2022
#55942: Add a "type" field to the meta and options tables
-------------------------------------------------+-------------------------
Reporter: azaozz | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Future
| Release
Component: Database | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests needs- | Focuses:
testing | performance
-------------------------------------------------+-------------------------
Comment (by petitphp):
We already have a way to define the type of data when using
`register_meta`/`register_term_meta`/`register_settings`. If i'm not
mistaken, this is currently only used when preparing output for the REST
API. We could leverage this to handle saving/retrieving data from the
database ? This would ensure existing metas/options would keep the current
behavior unless the dev has specified a type.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55942#comment:26>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list