[wp-trac] [WordPress Trac] #41983: Lead by example: pass unquoted placeholders to $wpdb->prepare()

WordPress Trac noreply at wordpress.org
Tue Sep 26 20:49:47 UTC 2017


#41983: Lead by example: pass unquoted placeholders to $wpdb->prepare()
----------------------------+-------------------
 Reporter:  jrf             |       Owner:
     Type:  task (blessed)  |      Status:  new
 Priority:  normal          |   Milestone:  4.9
Component:  Database        |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:  docs
----------------------------+-------------------

Comment (by johnjamesjacoby):

 > did you mean to commit this extra file to the patch

 No; sorry. I'll update the original patch to remove that bit.

 I agree it's a good idea to be more explicit and obvious about how
 `prepare()` expects to be used. Good call!

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


More information about the wp-trac mailing list