Make WordPress Core

Changeset 45957 for branches/4.5


Ignore:
Timestamp:
09/04/2019 04:38:26 PM (6 years ago)
Author:
whyisjake
Message:

Remove _convert_urlencoded_to_entities() from the get_the_content() callback.

Merges [45937] to the 4.5 branch.

Props vortfu, whyisjake, peterwilsoncc

Location:
branches/4.5
Files:
5 deleted
1 edited

Legend:

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

    r37783 r45957  
    316316    }
    317317
    318     if ( $preview ) // Preview fix for JavaScript bug with foreign languages.
    319         $output =   preg_replace_callback( '/\%u([0-9A-F]{4})/', '_convert_urlencoded_to_entities', $output );
    320 
    321318    return $output;
    322 }
    323 
    324 /**
    325  * Preview fix for JavaScript bug with foreign languages.
    326  *
    327  * @since 3.1.0
    328  * @access private
    329  *
    330  * @param array $match Match array from preg_replace_callback.
    331  * @return string
    332  */
    333 function _convert_urlencoded_to_entities( $match ) {
    334     return '&#' . base_convert( $match[1], 16, 10 ) . ';';
    335319}
    336320
Note: See TracChangeset for help on using the changeset viewer.