Changeset 45935
- Timestamp:
- 09/04/2019 04:03:56 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 5 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post-template.php
r45932 r45935 369 369 } 370 370 371 if ( $preview ) { // Preview fix for JavaScript bug with foreign languages.372 $output = preg_replace_callback( '/\%u([0-9A-F]{4})/', '_convert_urlencoded_to_entities', $output );373 }374 375 371 return $output; 376 }377 378 /**379 * Preview fix for JavaScript bug with foreign languages.380 *381 * @since 3.1.0382 * @access private383 *384 * @param array $match Match array from preg_replace_callback.385 * @return string386 */387 function _convert_urlencoded_to_entities( $match ) {388 return '&#' . base_convert( $match[1], 16, 10 ) . ';';389 372 } 390 373
Note: See TracChangeset
for help on using the changeset viewer.