Changeset 37469 for trunk/tests/phpunit/tests/option/sanitize-option.php
- Timestamp:
- 05/20/2016 04:53:40 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/option/sanitize-option.php
r34519 r37469 103 103 } 104 104 105 /** 106 * @ticket #36122 107 */ 108 public function test_emoji_in_blogname_and_description() { 109 global $wpdb; 110 111 $value = "whee\xf0\x9f\x98\x88"; 112 113 if ( 'utf8mb4' === $wpdb->get_col_charset( $wpdb->options, 'option_value' ) ) { 114 $expected = $value; 115 } else { 116 $expected = 'whee😈'; 117 } 118 119 $this->assertSame( $expected, sanitize_option( 'blogname', $value ) ); 120 $this->assertSame( $expected, sanitize_option( 'blogdescription', $value ) ); 121 } 105 122 }
Note: See TracChangeset
for help on using the changeset viewer.