[wp-trac] [WordPress Trac] #61950: add_*_meta()/get_*_meta() undocumented type juggling for some meta values

WordPress Trac noreply at wordpress.org
Fri Jan 17 00:10:24 UTC 2025


#61950: add_*_meta()/get_*_meta() undocumented type juggling for some meta values
--------------------------------+----------------------------
 Reporter:  rodrigosprimo       |       Owner:  peterwilsoncc
     Type:  defect (bug)        |      Status:  closed
 Priority:  normal              |   Milestone:  6.8
Component:  Options, Meta APIs  |     Version:
 Severity:  normal              |  Resolution:  fixed
 Keywords:  has-patch           |     Focuses:  docs
--------------------------------+----------------------------
Changes (by peterwilsoncc):

 * owner:  (none) => peterwilsoncc
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"59657" 59657]:
 {{{
 #!CommitTicketReference repository="" revision="59657"
 Options/Meta APIs: Document type juggling of meta data.

 Document that unserialised data types are stored as strings in the
 database and returned as such by the meta data functions. For example,
 setting meta data to the integer value `1` will be returned as `"1"` when
 subsequently queried via `get_metadata()` and the related functions.

 Props sukhendu2002, azaozz, jrf, rodrigosprimo.
 Fixes ticket:61950.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61950#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list