[wp-trac] [WordPress Trac] #42409: Add LIKE support to meta_key comparisons in WP_Meta_Query

WordPress Trac noreply at wordpress.org
Thu Aug 22 22:49:57 UTC 2019


#42409: Add LIKE support to meta_key comparisons in WP_Meta_Query
-------------------------------------------------+-------------------------
 Reporter:  Otto42                               |       Owner:
                                                 |  boonebgorges
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:  5.1
Component:  Query                                |     Version:  4.9
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-unit-tests has-dev-note needs-   |     Focuses:
  codex                                          |
-------------------------------------------------+-------------------------

Comment (by Otto42):

 Dunno, but you should not store serialized values as meta anyway. The meta
 functions have the ability to handle multiple values with the same key,
 and will store these values properly, as separate rows. Meta keys do not
 have to be unique per post in the database. See the documentation for the
 meta handling functions.

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


More information about the wp-trac mailing list