Make WordPress Core


Ignore:
Timestamp:
03/11/2015 10:54:49 PM (10 years ago)
Author:
pento
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/term.php

    r31418 r31734  
    175175        // Test existing term name with unique slug
    176176        $term1 = $this->factory->tag->create( array( 'name' => 'Bozo', 'slug' => 'bozo1' ) );
    177         $this->assertFalse( is_wp_error( $term1 ) );
    178         $this->assertTrue( empty($term1->errors ) );
     177        $this->assertTrue( is_wp_error( $term1 ) );
     178        $this->assertSame( 'term_exists', $term1->get_error_code() );
     179        $this->assertEquals( $term->term_id, $term1->get_error_data() );
    179180
    180181        // Test an existing term name
Note: See TracChangeset for help on using the changeset viewer.