Make WordPress Core


Ignore:
Timestamp:
07/14/2015 05:55:07 PM (10 years ago)
Author:
wonderboymusic
Message:

After [33148]:
Don't nest esc_attr() and htmlspecialchars() when escaping the post title on the edit post screen.

Unrevert parts of [32851] and [32850].

Adds/alters unit tests.

Props miqrogroove.
Fixes #17780.

File:
1 edited

Legend:

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

    r33148 r33271  
    2727
    2828    function test_esc_attr_amp() {
    29         $out = esc_attr( 'foo & bar &baz; '' );
    30         $this->assertEquals( "foo & bar &baz; '", $out );
     29        $out = esc_attr( 'foo & bar &baz;  ' );
     30        $this->assertEquals( "foo & bar &baz;  ", $out );
    3131    }
    3232}
Note: See TracChangeset for help on using the changeset viewer.