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

WordPress Trac noreply at wordpress.org
Wed Oct 9 00:15:14 UTC 2024


#61950: add_*_meta()/get_*_meta() undocumented type juggling for some meta values
------------------------------------------+---------------------
 Reporter:  rodrigosprimo                 |       Owner:  (none)
     Type:  defect (bug)                  |      Status:  new
 Priority:  normal                        |   Milestone:  6.7
Component:  Options, Meta APIs            |     Version:
 Severity:  normal                        |  Resolution:
 Keywords:  needs-patch needs-unit-tests  |     Focuses:  docs
------------------------------------------+---------------------

Comment (by peterwilsoncc):

 How about something like this?

 > Arrays and objects are stored in the database as serialized data and
 will be returned as the type used when saving the data.
 >
 > Other data types will be cast to strings for storing in the database and
 should be type cast after calling this function for use in their original
 form.

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


More information about the wp-trac mailing list