Changeset 45958 for branches/4.4/src/wp-includes/post-template.php
- Timestamp:
- 09/04/2019 04:38:59 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.4/src/wp-includes/post-template.php
r37785 r45958 306 306 } 307 307 308 if ( $preview ) // Preview fix for JavaScript bug with foreign languages.309 $output = preg_replace_callback( '/\%u([0-9A-F]{4})/', '_convert_urlencoded_to_entities', $output );310 311 308 return $output; 312 }313 314 /**315 * Preview fix for JavaScript bug with foreign languages.316 *317 * @since 3.1.0318 * @access private319 *320 * @param array $match Match array from preg_replace_callback.321 * @return string322 */323 function _convert_urlencoded_to_entities( $match ) {324 return '&#' . base_convert( $match[1], 16, 10 ) . ';';325 309 } 326 310
Note: See TracChangeset
for help on using the changeset viewer.