Changeset 45968
- Timestamp:
- 09/04/2019 04:47:00 PM (7 years ago)
- Location:
- branches/3.8
- Files:
-
- 5 deleted
- 1 edited
-
src/wp-includes/post-template.php (modified) (1 diff)
-
tests/phpunit/data/formatting/utf-8/entitize.py (deleted)
-
tests/phpunit/data/formatting/utf-8/entitized.txt (deleted)
-
tests/phpunit/data/formatting/utf-8/u-urlencode.py (deleted)
-
tests/phpunit/data/formatting/utf-8/u-urlencoded.txt (deleted)
-
tests/phpunit/tests/formatting/UrlEncodedToEntities.php (deleted)
Legend:
- Unmodified
- Added
- Removed
-
branches/3.8/src/wp-includes/post-template.php
r37794 r45968 227 227 } 228 228 229 if ( $preview ) // preview fix for javascript bug with foreign languages230 $output = preg_replace_callback( '/\%u([0-9A-F]{4})/', '_convert_urlencoded_to_entities', $output );231 232 229 return $output; 233 }234 235 /**236 * Preview fix for javascript bug with foreign languages237 *238 * @since 3.1.0239 * @access private240 * @param array $match Match array from preg_replace_callback241 * @return string242 */243 function _convert_urlencoded_to_entities( $match ) {244 return '&#' . base_convert( $match[1], 16, 10 ) . ';';245 230 } 246 231
Note: See TracChangeset
for help on using the changeset viewer.