Changeset 45963
- Timestamp:
- 09/04/2019 04:45:15 PM (5 years ago)
- Location:
- branches/4.0
- Files:
-
- 5 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.0/src/wp-includes/post-template.php
r37792 r45963 292 292 } 293 293 294 if ( $preview ) // preview fix for javascript bug with foreign languages295 $output = preg_replace_callback( '/\%u([0-9A-F]{4})/', '_convert_urlencoded_to_entities', $output );296 297 294 return $output; 298 }299 300 /**301 * Preview fix for javascript bug with foreign languages302 *303 * @since 3.1.0304 * @access private305 * @param array $match Match array from preg_replace_callback306 * @return string307 */308 function _convert_urlencoded_to_entities( $match ) {309 return '&#' . base_convert( $match[1], 16, 10 ) . ';';310 295 } 311 296
Note: See TracChangeset
for help on using the changeset viewer.