[wp-trac] [WordPress Trac] #31820: get_option() returns Integers as strings

WordPress Trac noreply at wordpress.org
Sat Jan 9 03:08:38 UTC 2016


#31820: get_option() returns Integers as strings
--------------------------------+--------------------
 Reporter:  golderweb           |       Owner:
     Type:  enhancement         |      Status:  new
 Priority:  normal              |   Milestone:  4.5
Component:  Options, Meta APIs  |     Version:  4.1.1
 Severity:  normal              |  Resolution:
 Keywords:  has-patch           |     Focuses:  docs
--------------------------------+--------------------
Changes (by boonebgorges):

 * focuses:   => docs
 * milestone:  Awaiting Review => 4.5


Comment:

 [attachment:31820.diff] won't work, because non-scalar values - objects,
 arrays, anything serializable - are not returned as strings.

 The suggestion made in [comment:3] by @MikeHansenMe is a good one. I'll
 add a bit of inline documentation that gestures at it.

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


More information about the wp-trac mailing list