Changeset 45961
- Timestamp:
- 09/04/2019 04:41:15 PM (7 years ago)
- Location:
- branches/4.2
- Files:
-
- 5 deleted
- 1 edited
-
src/wp-includes/post-template.php (modified) (1 diff)
-
tests/phpunit/data/formatting/utf-8/entitize.py (deleted)
-
tests/phpunit/data/formatting/utf-8/entitized.txt (deleted)
-
tests/phpunit/data/formatting/utf-8/u-urlencode.py (deleted)
-
tests/phpunit/data/formatting/utf-8/u-urlencoded.txt (deleted)
-
tests/phpunit/tests/formatting/UrlEncodedToEntities.php (deleted)
Legend:
- Unmodified
- Added
- Removed
-
branches/4.2/src/wp-includes/post-template.php
r37789 r45961 300 300 } 301 301 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 305 302 return $output; 306 }307 308 /**309 * Preview fix for JavaScript bug with foreign languages.310 *311 * @since 3.1.0312 * @access private313 * @param array $match Match array from preg_replace_callback314 * @return string315 */316 function _convert_urlencoded_to_entities( $match ) {317 return '&#' . base_convert( $match[1], 16, 10 ) . ';';318 303 } 319 304
Note: See TracChangeset
for help on using the changeset viewer.