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

WordPress Trac noreply at wordpress.org
Sat Jan 9 03:12:01 UTC 2016


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

 * owner:   => boonebgorges
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"36234"]:
 {{{
 #!CommitTicketReference repository="" revision="36234"
 Clarify return types in `get_option()` documentation.

 The new note specifies that scalar values will always be returned as
 strings.

 Fixes #31820.
 }}}

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


More information about the wp-trac mailing list