WordPress.org

Make WordPress Core

Changeset 19692


Ignore:
Timestamp:
01/05/2012 09:29:57 PM (6 years ago)
Author:
duck_
Message:

Stop quotes being incorrectly added to prepare placeholders in wpdb::_insert_replace_helper(). Fixes #19016.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/wp-db.php

    r19611 r19692  
    12131213            $formatted_fields[] = $form;
    12141214        }
    1215         $sql = "{$type} INTO `$table` (`" . implode( '`,`', $fields ) . "`) VALUES ('" . implode( "','", $formatted_fields ) . "')";
     1215        $sql = "{$type} INTO `$table` (`" . implode( '`,`', $fields ) . "`) VALUES (" . implode( ",", $formatted_fields ) . ")";
    12161216        return $this->query( $this->prepare( $sql, $data ) );
    12171217    }
Note: See TracChangeset for help on using the changeset viewer.