Opened 15 years ago
Closed 15 years ago
#19016 closed defect (bug) (fixed)
wpdb::_insert_replace_helper() incorrectly quotes prepare placeholders
| Reported by: | duck_ | Owned by: | duck_ |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.4 |
| Component: | Database | Version: | 2.8 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
wpdb::_insert_replace_helper() implodes $formatted_fields with "','" this produces something like:
INSERT INTO `wp_terms` (`name`,`slug`,`term_group`) VALUES ('%s','%s','%d')
and not
INSERT INTO `wp_terms` (`name`,`slug`,`term_group`) VALUES (%s,%s,%d)
This is inherited from wpdb::insert(), see [10724], so marking version as 2.8 rather than 3.0.
Attachments (1)
Change History (3)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In [19692]: