Skip to content

Commit 572ef56

Browse files
committed
Remove _convert_urlencoded_to_entities() from the get_the_content() callback.
Merges [45937] to the 4.2 branch. Props vortfu, whyisjake, peterwilsoncc git-svn-id: https://develop.svn.wordpress.org/branches/4.2@45961 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 13d18fd commit 572ef56

6 files changed

Lines changed: 0 additions & 99 deletions

File tree

src/wp-includes/post-template.php

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -299,24 +299,9 @@ function get_the_content( $more_link_text = null, $strip_teaser = false ) {
299299
}
300300
}
301301

302-
if ( $preview ) // Preview fix for JavaScript bug with foreign languages.
303-
$output = preg_replace_callback( '/\%u([0-9A-F]{4})/', '_convert_urlencoded_to_entities', $output );
304-
305302
return $output;
306303
}
307304

308-
/**
309-
* Preview fix for JavaScript bug with foreign languages.
310-
*
311-
* @since 3.1.0
312-
* @access private
313-
* @param array $match Match array from preg_replace_callback
314-
* @return string
315-
*/
316-
function _convert_urlencoded_to_entities( $match ) {
317-
return '&#' . base_convert( $match[1], 16, 10 ) . ';';
318-
}
319-
320305
/**
321306
* Display the post excerpt.
322307
*

tests/phpunit/data/formatting/utf-8/entitize.py

Lines changed: 0 additions & 24 deletions
This file was deleted.

tests/phpunit/data/formatting/utf-8/entitized.txt

Lines changed: 0 additions & 6 deletions
This file was deleted.

tests/phpunit/data/formatting/utf-8/u-urlencode.py

Lines changed: 0 additions & 24 deletions
This file was deleted.

tests/phpunit/data/formatting/utf-8/u-urlencoded.txt

Lines changed: 0 additions & 6 deletions
This file was deleted.

tests/phpunit/tests/formatting/UrlEncodedToEntities.php

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)