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

WordPress Trac noreply at wordpress.org
Thu Sep 28 04:31:07 UTC 2017


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

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"41628"]:
 {{{
 #!CommitTicketReference repository="" revision="41628"
 Database: Don't quote placeholders in queries going through
 `$wpdb->prepare()`

 To bring Core into line with the changes to `$wpdb->prepare()` in
 WordPress 4.8.2, query placeholders shouldn't be quoted.

 Props jrf, johnjamesjacoby.
 Fixes #41983.
 }}}

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


More information about the wp-trac mailing list