Make WordPress Core

Changeset 45962


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

Remove _convert_urlencoded_to_entities() from the get_the_content() callback.

Merges [45937] to the 4.1 branch.

Props vortfu, whyisjake, peterwilsoncc

Location:
branches/4.1
Files:
5 deleted
1 edited

Legend:

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

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