Make WordPress Core


Ignore:
Timestamp:
07/01/2019 03:28:21 AM (6 years ago)
Author:
pento
Message:

Formatting: Trim leading whitespace in esc_url().

Props toszcze.
Fixes #36369.

File:
1 edited

Legend:

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

    r43571 r45578  
    1414        $this->assertEquals( 'http://example.com/Mr%20%20WordPress', esc_url( 'http://example.com/Mr%20%20WordPress' ) );
    1515        $this->assertEquals( 'http://example.com/Mr+WordPress', esc_url( 'http://example.com/Mr+WordPress' ) );
     16        $this->assertEquals( 'http://example.com/Mr+WordPress', esc_url( ' http://example.com/Mr+WordPress' ) );
    1617
    1718        $this->assertEquals( 'http://example.com/?foo=one%20two%20three&bar=four', esc_url( 'http://example.com/?foo=one two three&bar=four' ) );
Note: See TracChangeset for help on using the changeset viewer.