[wp-trac] [WordPress Trac] #55942: Add a "value type" parameter to get_option() and get_metadata()

WordPress Trac noreply at wordpress.org
Sat Apr 29 17:30:50 UTC 2023


#55942: Add a "value type" parameter to get_option() and get_metadata()
-------------------------------------------------+-------------------------
 Reporter:  azaozz                               |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  6.3
Component:  Options, Meta APIs                   |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests needs-      |     Focuses:
  testing                                        |  performance
-------------------------------------------------+-------------------------

Comment (by Otto42):

 Replying to [comment:56 rjasdfiii]:
 > Storing numbers in strings makes them difficult to compare with '>' and
 '<'.  This leads to cumbersome and slow use of CAST in comparisons.

 PHP strings, decimal columns. And again this probably is not going to
 matter unless we are trying to specifically handle a column type we don't
 use.

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


More information about the wp-trac mailing list