[wp-trac] [WordPress Trac] #44579: get_option() is type aware now (returns Integers as Integers)

WordPress Trac noreply at wordpress.org
Mon Jun 6 17:22:08 UTC 2022

#44579: get_option() is type aware now (returns Integers as Integers)
 Reporter:  gdespoulain         |       Owner:  (none)
     Type:  defect (bug)        |      Status:  closed
 Priority:  normal              |   Milestone:  5.7
Component:  Options, Meta APIs  |     Version:
 Severity:  minor               |  Resolution:  fixed
 Keywords:                      |     Focuses:  docs
Changes (by SergeyBiryukov):

 * status:  new => closed
 * resolution:   => fixed
 * milestone:  Awaiting Review => 5.7


 Replying to [comment:2 boonebgorges]:
 > This being said, this bit of documentation could probably be improved.
 Something like "Note that scalar values may be returned as strings when
 retrieved from the database" might be a more accurate wording.

 It looks like the documentation was updated for WordPress 5.7 in [51050] /
 #51278. I believe this ticket is now resolved.

Ticket URL: <https://core.trac.wordpress.org/ticket/44579#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list