Make WordPress Core

Changeset 45963


Ignore:
Timestamp:
09/04/2019 04:45:15 PM (5 years ago)
Author:
whyisjake
Message:

Remove _convert_urlencoded_to_entities() from the get_the_content() callback.

Merges [45937] to the 4.0 branch.

Props vortfu, whyisjake, peterwilsoncc

Location:
branches/4.0
Files:
5 deleted
1 edited

Legend:

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

    r37792 r45963  
    292292    }
    293293
    294     if ( $preview ) // preview fix for javascript bug with foreign languages
    295         $output =   preg_replace_callback( '/\%u([0-9A-F]{4})/', '_convert_urlencoded_to_entities', $output );
    296 
    297294    return $output;
    298 }
    299 
    300 /**
    301  * Preview fix for javascript bug with foreign languages
    302  *
    303  * @since 3.1.0
    304  * @access private
    305  * @param array $match Match array from preg_replace_callback
    306  * @return string
    307  */
    308 function _convert_urlencoded_to_entities( $match ) {
    309     return '&#' . base_convert( $match[1], 16, 10 ) . ';';
    310295}
    311296
Note: See TracChangeset for help on using the changeset viewer.