Changeset 45965 for branches/3.9/src/wp-includes/post-template.php
- Timestamp:
- 09/04/2019 04:46:01 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.9/src/wp-includes/post-template.php
r37793 r45965 281 281 } 282 282 283 if ( $preview ) // preview fix for javascript bug with foreign languages284 $output = preg_replace_callback( '/\%u([0-9A-F]{4})/', '_convert_urlencoded_to_entities', $output );285 286 283 return $output; 287 }288 289 /**290 * Preview fix for javascript bug with foreign languages291 *292 * @since 3.1.0293 * @access private294 * @param array $match Match array from preg_replace_callback295 * @return string296 */297 function _convert_urlencoded_to_entities( $match ) {298 return '&#' . base_convert( $match[1], 16, 10 ) . ';';299 284 } 300 285
Note: See TracChangeset
for help on using the changeset viewer.