[wp-trac] [WordPress Trac] #55942: Add a "type" field to the meta and options tables

WordPress Trac noreply at wordpress.org
Thu Apr 13 03:10:18 UTC 2023


#55942: Add a "type" field to the meta and options tables
-------------------------------------------------+-------------------------
 Reporter:  azaozz                               |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  Database                             |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests needs-      |     Focuses:
  testing                                        |  performance
-------------------------------------------------+-------------------------

Comment (by azaozz):

 Replying to [comment:33 rjasdfiii]:
 > What happens when a user fetches posts based on a postmeta value that
 needs to be numeric

 Assuming you're first getting the meta from PHP, see the change to
 [https://github.com/WordPress/wordpress-develop/pull/4324/files#diff-
 d97fcbb3af195369ae1e21d1a5672911069350809eddaac39e17c5458b7086caR570
 get_metadata() ]. Can use the new `$value_type` param to specify the
 returned value's type.

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


More information about the wp-trac mailing list