Changeset 36578
- Timestamp:
- 02/18/2016 08:30:54 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r36488 r36578 375 375 function _wptexturize_pushpop_element( $text, &$stack, $disabled_elements ) { 376 376 // Is it an opening tag or closing tag? 377 if ( '/' !== $text[1] ) {377 if ( isset( $text[1] ) && '/' !== $text[1] ) { 378 378 $opening_tag = true; 379 379 $name_offset = 1; -
trunk/tests/phpunit/tests/formatting/WPTexturize.php
r36036 r36578 2074 2074 } 2075 2075 2076 /** 2077 * Ensure that a trailing less-than symbol doesn't cause a PHP warning. 2078 * 2079 * @ticket 35864 2080 */ 2081 function test_trailing_less_than() { 2082 $this->assertEquals( 'F–oo<', wptexturize( 'F--oo<', true ) ); 2083 } 2084 2076 2085 function data_whole_posts() { 2077 2086 require_once( DIR_TESTDATA . '/formatting/whole-posts.php' );
Note: See TracChangeset
for help on using the changeset viewer.