Changeset 45940
- Timestamp:
- 09/04/2019 04:20:37 PM (5 years ago)
- Location:
- branches/5.1
- Files:
-
- 5 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.1/src/wp-includes/post-template.php
r44471 r45940 339 339 } 340 340 341 if ( $preview ) { // Preview fix for JavaScript bug with foreign languages.342 $output = preg_replace_callback( '/\%u([0-9A-F]{4})/', '_convert_urlencoded_to_entities', $output );343 }344 345 341 return $output; 346 }347 348 /**349 * Preview fix for JavaScript bug with foreign languages.350 *351 * @since 3.1.0352 * @access private353 *354 * @param array $match Match array from preg_replace_callback.355 * @return string356 */357 function _convert_urlencoded_to_entities( $match ) {358 return '&#' . base_convert( $match[1], 16, 10 ) . ';';359 342 } 360 343
Note: See TracChangeset
for help on using the changeset viewer.