mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Add emoji URL support, and Twemoji fallback for displaying slugs in wp-admin, when the browser doesn't natively support emoji.
Props pento, SergeyBiryukov and boonebgorges. Fixes #31328 git-svn-id: https://develop.svn.wordpress.org/trunk@31734 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -2,4 +2,5 @@
|
||||
François Truffaut
|
||||
საქართველო
|
||||
Björk Guðmundsdóttir
|
||||
宮崎 駿
|
||||
宮崎 駿
|
||||
👍
|
||||
@@ -1,5 +1,6 @@
|
||||
%u7AE0%u5B50%u6021
|
||||
%u0046%u0072%u0061%u006E%u00E7%u006F%u0069%u0073%u0020%u0054%u0072%u0075%u0066%u0066%u0061%u0075%u0074
|
||||
%u10E1%u10D0%u10E5%u10D0%u10E0%u10D7%u10D5%u10D4%u10DA%u10DD
|
||||
%u0042%u006A%u00F6%u0072%u006B%u0020%u0047%u0075%u00F0%u006D%u0075%u006E%u0064%u0073%u0064%u00F3%u0074%u0074%u0069%u0072
|
||||
%u5BAE%u5D0E%u3000%u99FF
|
||||
%u7AE0%u5B50%u6021
|
||||
%u0046%u0072%u0061%u006E%u00E7%u006F%u0069%u0073%u0020%u0054%u0072%u0075%u0066%u0066%u0061%u0075%u0074
|
||||
%u10E1%u10D0%u10E5%u10D0%u10E0%u10D7%u10D5%u10D4%u10DA%u10DD
|
||||
%u0042%u006A%u00F6%u0072%u006B%u0020%u0047%u0075%u00F0%u006D%u0075%u006E%u0064%u0073%u0064%u00F3%u0074%u0074%u0069%u0072
|
||||
%u5BAE%u5D0E%u3000%u99FF
|
||||
%u1F44D
|
||||
@@ -1,5 +1,6 @@
|
||||
%e7%ab%a0%e5%ad%90%e6%80%a1
|
||||
Fran%c3%a7ois Truffaut
|
||||
%e1%83%a1%e1%83%90%e1%83%a5%e1%83%90%e1%83%a0%e1%83%97%e1%83%95%e1%83%94%e1%83%9a%e1%83%9d
|
||||
Bj%c3%b6rk Gu%c3%b0mundsd%c3%b3ttir
|
||||
%e5%ae%ae%e5%b4%8e%e3%80%80%e9%a7%bf
|
||||
%e7%ab%a0%e5%ad%90%e6%80%a1
|
||||
Fran%c3%a7ois Truffaut
|
||||
%e1%83%a1%e1%83%90%e1%83%a5%e1%83%90%e1%83%a0%e1%83%97%e1%83%95%e1%83%94%e1%83%9a%e1%83%9d
|
||||
Bj%c3%b6rk Gu%c3%b0mundsd%c3%b3ttir
|
||||
%e5%ae%ae%e5%b4%8e%e3%80%80%e9%a7%bf
|
||||
%f0%9f%91%8d
|
||||
@@ -3,3 +3,4 @@ François Truffaut
|
||||
საქართველო
|
||||
Björk Guðmundsdóttir
|
||||
宮崎 駿
|
||||
👍
|
||||
|
||||
@@ -8,7 +8,7 @@ class Tests_Formatting_UrlEncodedToEntities extends WP_UnitTestCase {
|
||||
* @dataProvider data
|
||||
*/
|
||||
function test_convert_urlencoded_to_entities( $u_urlencoded, $entity ) {
|
||||
$this->assertEquals( $entity, preg_replace_callback('/\%u([0-9A-F]{4})/', '_convert_urlencoded_to_entities', $u_urlencoded ), $entity );
|
||||
$this->assertEquals( $entity, preg_replace_callback('/\%u([0-9A-F]{4,5})/', '_convert_urlencoded_to_entities', $u_urlencoded ), $entity );
|
||||
}
|
||||
|
||||
function data() {
|
||||
|
||||
@@ -174,8 +174,9 @@ class Tests_Term extends WP_UnitTestCase {
|
||||
|
||||
// Test existing term name with unique slug
|
||||
$term1 = $this->factory->tag->create( array( 'name' => 'Bozo', 'slug' => 'bozo1' ) );
|
||||
$this->assertFalse( is_wp_error( $term1 ) );
|
||||
$this->assertTrue( empty($term1->errors ) );
|
||||
$this->assertTrue( is_wp_error( $term1 ) );
|
||||
$this->assertSame( 'term_exists', $term1->get_error_code() );
|
||||
$this->assertEquals( $term->term_id, $term1->get_error_data() );
|
||||
|
||||
// Test an existing term name
|
||||
$term2 = $this->factory->tag->create( array( 'name' => 'Bozo' ) );
|
||||
|
||||
Reference in New Issue
Block a user