Make WordPress Core

Ticket #32165: 32165.2.diff

File 32165.2.diff, 461 bytes (added by swissspidy, 10 years ago)

Simplified OP's patch

  • src/wp-includes/wp-db.php

    diff --git src/wp-includes/wp-db.php src/wp-includes/wp-db.php
    index 0bd7a18..f991a3d 100644
    class wpdb { 
    25902590                $db_check_string = false;
    25912591
    25922592                foreach ( $data as &$value ) {
    2593                         $charset = $value['charset'];
     2593                        $charset = $this->charset;
    25942594
    25952595                        // Column isn't a string, or is latin1, which will will happily store anything.
    25962596                        if ( false === $charset || 'latin1' === $charset ) {