Make WordPress Core


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

Remove _convert_urlencoded_to_entities() from the get_the_content() callback.

Merges [45937] to the 3.9 branch.

Props vortfu, whyisjake, peterwilsoncc

File:
1 edited

Legend:

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

    r37793 r45965  
    281281    }
    282282
    283     if ( $preview ) // preview fix for javascript bug with foreign languages
    284         $output =   preg_replace_callback( '/\%u([0-9A-F]{4})/', '_convert_urlencoded_to_entities', $output );
    285 
    286283    return $output;
    287 }
    288 
    289 /**
    290  * Preview fix for javascript bug with foreign languages
    291  *
    292  * @since 3.1.0
    293  * @access private
    294  * @param array $match Match array from preg_replace_callback
    295  * @return string
    296  */
    297 function _convert_urlencoded_to_entities( $match ) {
    298     return '&#' . base_convert( $match[1], 16, 10 ) . ';';
    299284}
    300285
Note: See TracChangeset for help on using the changeset viewer.