Changeset 45937
- Timestamp:
- 09/04/2019 04:08:31 PM (6 years ago)
- Location:
- branches/5.2
- Files:
-
- 5 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.2
-
branches/5.2/src/wp-includes/post-template.php
r45261 r45937 363 363 } 364 364 365 if ( $preview ) { // Preview fix for JavaScript bug with foreign languages.366 $output = preg_replace_callback( '/\%u([0-9A-F]{4})/', '_convert_urlencoded_to_entities', $output );367 }368 369 365 return $output; 370 }371 372 /**373 * Preview fix for JavaScript bug with foreign languages.374 *375 * @since 3.1.0376 * @access private377 *378 * @param array $match Match array from preg_replace_callback.379 * @return string380 */381 function _convert_urlencoded_to_entities( $match ) {382 return '&#' . base_convert( $match[1], 16, 10 ) . ';';383 366 } 384 367
Note: See TracChangeset
for help on using the changeset viewer.