Changeset 45957 for branches/4.5
- Timestamp:
- 09/04/2019 04:38:26 PM (6 years ago)
- Location:
- branches/4.5
- Files:
-
- 5 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.5/src/wp-includes/post-template.php
r37783 r45957 316 316 } 317 317 318 if ( $preview ) // Preview fix for JavaScript bug with foreign languages.319 $output = preg_replace_callback( '/\%u([0-9A-F]{4})/', '_convert_urlencoded_to_entities', $output );320 321 318 return $output; 322 }323 324 /**325 * Preview fix for JavaScript bug with foreign languages.326 *327 * @since 3.1.0328 * @access private329 *330 * @param array $match Match array from preg_replace_callback.331 * @return string332 */333 function _convert_urlencoded_to_entities( $match ) {334 return '&#' . base_convert( $match[1], 16, 10 ) . ';';335 319 } 336 320
Note: See TracChangeset
for help on using the changeset viewer.