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

WordPress Trac noreply at wordpress.org
Fri Feb 21 16:31:27 UTC 2014


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

Comment (by Ninos Ego):

 Replying to [comment:2 pento]:
 > 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.

 But it would solve a lot of time passing an array through the prepare-
 function. The core, plugins and themes would be also more secure and a
 little bit lighter. If you want I can pull a patch.

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


More information about the wp-trac mailing list