WordPress.org

Make WordPress Core

Changeset 45940


Ignore:
Timestamp:
09/04/2019 04:20:37 PM (2 weeks ago)
Author:
whyisjake
Message:

Remove _convert_urlencoded_to_entities() from the get_the_content() callback.

Merges [45937] to the 5.1 branch.

Props vortfu, whyisjake, peterwilsoncc

Location:
branches/5.1
Files:
5 deleted
1 edited

Legend:

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

    r44471 r45940  
    339339    }
    340340
    341     if ( $preview ) { // Preview fix for JavaScript bug with foreign languages.
    342         $output = preg_replace_callback( '/\%u([0-9A-F]{4})/', '_convert_urlencoded_to_entities', $output );
    343     }
    344 
    345341    return $output;
    346 }
    347 
    348 /**
    349  * Preview fix for JavaScript bug with foreign languages.
    350  *
    351  * @since 3.1.0
    352  * @access private
    353  *
    354  * @param array $match Match array from preg_replace_callback.
    355  * @return string
    356  */
    357 function _convert_urlencoded_to_entities( $match ) {
    358     return '&#' . base_convert( $match[1], 16, 10 ) . ';';
    359342}
    360343
Note: See TracChangeset for help on using the changeset viewer.