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

WordPress Trac noreply at wordpress.org
Tue Sep 26 22:59:37 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 GaryJ):

 Replying to [comment:6 jrf]:
 > @johnjamesjacoby Thanks, but am I correct in that your updated patch no
 longer contains the doc fix to the `esc_like()` example code ?

 It's the last hunk in the patch (`wp-includes/wp-db.php`) - note the
 asterisk at the start of the line. May be easier to see on
 [https://github.com/WordPress/WordPress/blob/b32256701a69f15e82b9ebff6acf11acd801375b
 /wp-includes/wp-db.php#L1270 GitHub].

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


More information about the wp-trac mailing list