WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #44541, comment 9


Ignore:
Timestamp:
07/09/2018 04:20:34 PM (20 months ago)
Author:
birgire
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #44541, comment 9

    initial v1  
    3030        switch_to_locale( 'ja_JP' );
    3131        $expected = substr( $this->long_text, 0, 20 ) . '…';
     32        $actual = wp_trim_words( $this->long_text, 20 );
    3233        restore_previous_locale();
    33         $actual = wp_trim_words( $this->long_text, 20 );
    3434        $this->assertEquals( $expected, $actual );
    3535}