[wp-trac] [WordPress Trac] #21212: MySQL tables should use utf8mb4 character set

WordPress Trac noreply at wordpress.org
Sun Jan 25 03:38:11 UTC 2015


#21212: MySQL tables should use utf8mb4 character set
----------------------------+-----------------------
 Reporter:  pento           |       Owner:
     Type:  task (blessed)  |      Status:  reopened
 Priority:  normal          |   Milestone:  4.2
Component:  Database        |     Version:  3.4.1
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:
----------------------------+-----------------------

Comment (by boonebgorges):

 In [changeset:"31277"]:
 {{{
 #!CommitTicketReference repository="" revision="31277"
 In `Tests_Ajax_ReplytoComment::test_blocked_comment()`, don't stop
 blocking comments until test is complete.

 The test uses the `_block_comments()` method to prevent comment inserts
 from
 happening. Since [31263], failed comment inserts lead to the comment
 content's
 being stripped of invalid characters and inserted again. By immediately
 unhooking itself after first being run, `_block_comments()` was causing
 the
 INSERT block to work only for the first attempt, while the second attempt
 was
 going through, causing the test to fail. As a fix, we move the
 `remove_filter()` call to the class's `tearDown()` method - sufficient for
 cleanup, but late enough that *all* comment inserts will be blocked for
 the
 test method in question.

 See #21212.
 Since [31263], comment INSERT queries that were pseudo-bl
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/21212#comment:74>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list