WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/04/2019 04:03:56 PM (7 weeks ago)
Author:
whyisjake
Message:

Remove _convert_urlencoded_to_entities() from the get_the_content() callback.

Props vortfu, whyisjake, peterwilsoncc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post-template.php

    r45932 r45935  
    369369    }
    370370
    371     if ( $preview ) { // Preview fix for JavaScript bug with foreign languages.
    372         $output = preg_replace_callback( '/\%u([0-9A-F]{4})/', '_convert_urlencoded_to_entities', $output );
    373     }
    374 
    375371    return $output;
    376 }
    377 
    378 /**
    379  * Preview fix for JavaScript bug with foreign languages.
    380  *
    381  * @since 3.1.0
    382  * @access private
    383  *
    384  * @param array $match Match array from preg_replace_callback.
    385  * @return string
    386  */
    387 function _convert_urlencoded_to_entities( $match ) {
    388     return '&#' . base_convert( $match[1], 16, 10 ) . ';';
    389372}
    390373
Note: See TracChangeset for help on using the changeset viewer.