| @@ 174-184 (lines=11) @@ | ||
| 171 | /** |
|
| 172 | * @ticket 16859 |
|
| 173 | */ |
|
| 174 | function test_square_brackets() |
|
| 175 | { |
|
| 176 | $this->assertEquals('/example.php?one%5B%5D=two', esc_url('/example.php?one[]=two')); |
|
| 177 | $this->assertEquals('?foo%5Bbar%5D=baz', esc_url('?foo[bar]=baz')); |
|
| 178 | $this->assertEquals('//example.com/?foo%5Bbar%5D=baz', esc_url('//example.com/?foo[bar]=baz')); |
|
| 179 | $this->assertEquals('http://example.com/?foo%5Bbar%5D=baz', esc_url('example.com/?foo[bar]=baz')); |
|
| 180 | $this->assertEquals('http://localhost?foo%5Bbar%5D=baz', esc_url('localhost?foo[bar]=baz')); |
|
| 181 | $this->assertEquals('http://example.com/?foo%5Bbar%5D=baz', esc_url('http://example.com/?foo[bar]=baz')); |
|
| 182 | $this->assertEquals('http://example.com/?foo%5Bbar%5D=baz', esc_url('http://example.com/?foo%5Bbar%5D=baz')); |
|
| 183 | $this->assertEquals('http://example.com/?baz=bar&foo%5Bbar%5D=baz', esc_url('http://example.com/?baz=bar&foo[bar]=baz')); |
|
| 184 | $this->assertEquals('http://example.com/?baz=bar&foo%5Bbar%5D=baz', esc_url('http://example.com/?baz=bar&foo%5Bbar%5D=baz')); |
|
| 185 | } |
|
| 186 | ||
| 187 | /** |
|
| @@ 399-409 (lines=11) @@ | ||
| 396 | /** |
|
| 397 | * @ticket 26290 |
|
| 398 | */ |
|
| 399 | public function test_wp_kses_normalize_entities() |
|
| 400 | { |
|
| 401 | $this->assertEquals('♠', wp_kses_normalize_entities('♠')); |
|
| 402 | ||
| 403 | $this->assertEquals('¹', wp_kses_normalize_entities('¹')); |
|
| 404 | $this->assertEquals('²', wp_kses_normalize_entities('²')); |
|
| 405 | $this->assertEquals('³', wp_kses_normalize_entities('³')); |
|
| 406 | $this->assertEquals('¼', wp_kses_normalize_entities('¼')); |
|
| 407 | $this->assertEquals('½', wp_kses_normalize_entities('½')); |
|
| 408 | $this->assertEquals('¾', wp_kses_normalize_entities('¾')); |
|
| 409 | $this->assertEquals('∴', wp_kses_normalize_entities('∴')); |
|
| 410 | } |
|
| 411 | ||
| 412 | /** |
|