[wp-trac] [WordPress Trac] #24581: Database IN() operators + array are broken

WordPress Trac noreply at wordpress.org
Fri Feb 21 13:04:05 UTC 2014


#24581: Database IN() operators + array are broken
--------------------------+------------------------------
 Reporter:  Ninos Ego     |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Database      |     Version:  2.9
 Severity:  normal        |  Resolution:
 Keywords:  close         |     Focuses:
--------------------------+------------------------------
Changes (by pento):

 * keywords:   => close


Comment:

 Thanks for the report, Ninos!

 This was fixed in [18500], when `delete_post_meta_by_key()` changed over
 to using `delete_metadata()`.

 As for passing an array to `$wpdb->prepare()`, this behaviour isn't
 supported by regular prepare functions, so I don't think it'd be a good
 fit.

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


More information about the wp-trac mailing list