Make WordPress Core


Ignore:
Timestamp:
11/30/2017 11:09:33 PM (7 years ago)
Author:
pento
Message:

Code is Poetry.
WordPress' code just... wasn't.
This is now dealt with.

Props jrf, pento, netweb, GaryJ, jdgrimes, westonruter, Greg Sherwood from PHPCS, and everyone who's ever contributed to WPCS and PHPCS.
Fixes #41057.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/formatting/WPTrimWords.php

    r25002 r42343  
    2323
    2424    function test_strips_tags_before_trimming() {
    25         $text = 'This text contains a <a href="http://wordpress.org"> link </a> to WordPress.org!';
     25        $text    = 'This text contains a <a href="http://wordpress.org"> link </a> to WordPress.org!';
    2626        $trimmed = 'This text contains a link&hellip;';
    2727        $this->assertEquals( $trimmed, wp_trim_words( $text, 5 ) );
Note: See TracChangeset for help on using the changeset viewer.