mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 21:00:21 +00:00
Code is Poetry.
WordPress' code just... wasn't. This is now dealt with. Props jrf, pento, netweb, GaryJ, jdgrimes, westonruter, Greg Sherwood from PHPCS, and everyone who's ever contributed to WPCS and PHPCS. Fixes #41057. git-svn-id: https://develop.svn.wordpress.org/trunk@42343 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -15,7 +15,7 @@ class Tests_Formatting_EscTextarea extends WP_UnitTestCase {
|
||||
*/
|
||||
function test_esc_textarea_charset_iso_8859_1() {
|
||||
add_filter( 'pre_option_blog_charset', array( $this, '_charset_iso_8859_1' ) );
|
||||
$iso8859_1 = 'Fran' .chr(135) .'ais';
|
||||
$iso8859_1 = 'Fran' . chr( 135 ) . 'ais';
|
||||
$this->assertEquals( $iso8859_1, esc_textarea( $iso8859_1 ) );
|
||||
remove_filter( 'pre_option_blog_charset', array( $this, '_charset_iso_8859_1' ) );
|
||||
}
|
||||
@@ -29,7 +29,7 @@ class Tests_Formatting_EscTextarea extends WP_UnitTestCase {
|
||||
*/
|
||||
function test_esc_textarea_charset_utf_8() {
|
||||
add_filter( 'pre_option_blog_charset', array( $this, '_charset_utf_8' ) );
|
||||
$utf8 = 'Fran' .chr(195) . chr(167) .'ais';
|
||||
$utf8 = 'Fran' . chr( 195 ) . chr( 167 ) . 'ais';
|
||||
$this->assertEquals( $utf8, esc_textarea( $utf8 ) );
|
||||
remove_filter( 'pre_option_blog_charset', array( $this, '_charset_utf_8' ) );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user