mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-06 07:36:58 +00:00
Formatting: Avoid a PHP warning when wptexturize() is called with a trailing less-than symbol.
Props westonruter. Fixes #35864. git-svn-id: https://develop.svn.wordpress.org/trunk@36578 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -2073,6 +2073,15 @@ String with a number followed by a single quote !q1!Expendables 3!q1! vestibulum
|
||||
return $this->assertLessThan( 200, $result );
|
||||
}
|
||||
|
||||
/**
|
||||
* Ensure that a trailing less-than symbol doesn't cause a PHP warning.
|
||||
*
|
||||
* @ticket 35864
|
||||
*/
|
||||
function test_trailing_less_than() {
|
||||
$this->assertEquals( 'F–oo<', wptexturize( 'F--oo<', true ) );
|
||||
}
|
||||
|
||||
function data_whole_posts() {
|
||||
require_once( DIR_TESTDATA . '/formatting/whole-posts.php' );
|
||||
return data_whole_posts();
|
||||
|
||||
Reference in New Issue
Block a user