WordPress.org

Make WordPress Core

Ticket #19016: 19016.diff

File 19016.diff, 575 bytes (added by duck_, 7 years ago)
  • wp-includes/wp-db.php

     
    11971197                                $form = '%s';
    11981198                        $formatted_fields[] = $form;
    11991199                }
    1200                 $sql = "{$type} INTO `$table` (`" . implode( '`,`', $fields ) . "`) VALUES ('" . implode( "','", $formatted_fields ) . "')";
     1200                $sql = "{$type} INTO `$table` (`" . implode( '`,`', $fields ) . "`) VALUES (" . implode( ",", $formatted_fields ) . ")";
    12011201                return $this->query( $this->prepare( $sql, $data ) );
    12021202        }
    12031203