WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/06/2015 07:06:02 PM (7 years ago)
Author:
mdawaffe
Message:

WPDB: When checking that a string can be sent to MySQL, we shouldn't use mb_convert_encoding(), as it behaves differently to MySQL's character encoding conversion.

Merge of [32364] to the 4.1 branch.

Props mdawaffe, pento, nbachiyski, jorbin, johnjamesjacoby, jeremyfelt.

See #32165.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/4.1/tests/phpunit/tests/comment.php

    r32307 r32387  
    5252        }
    5353
    54         $post_id = $this->factory->post->create();
     54        $u = $this->factory->user->create();
     55        $post_id = $this->factory->post->create( array( 'post_author' => $u ) );
    5556
    5657        $data = array(
Note: See TracChangeset for help on using the changeset viewer.