[wp-trac] [WordPress Trac] #41997: Database error in SQL syntax ( $wpdb->prepare )

WordPress Trac noreply at wordpress.org
Tue Sep 26 21:27:33 UTC 2017


#41997: Database error in SQL syntax ( $wpdb->prepare )
--------------------------+------------------------
 Reporter:  Track77       |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Database      |     Version:  4.8.2
 Severity:  normal        |  Resolution:  duplicate
 Keywords:                |     Focuses:
--------------------------+------------------------
Changes (by Clorith):

 * status:  new => closed
 * resolution:   => duplicate
 * milestone:  Awaiting Review =>


Comment:

 Hi there, and thanks for the report.

 The use of numbered variables is actually an unsupported syntax,
 [https://developer.wordpress.org/reference/classes/wpdb/prepare/ as noted
 in the documentation], the introduction of numbered variables are being
 discussed in #41925.

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


More information about the wp-trac mailing list