Make WordPress Core


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

Remove _convert_urlencoded_to_entities() from the get_the_content() callback.

Merges [45937] to the 4.4 branch.

Props vortfu, whyisjake, peterwilsoncc

File:
1 edited

Legend:

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

    r37785 r45958  
    306306    }
    307307
    308     if ( $preview ) // Preview fix for JavaScript bug with foreign languages.
    309         $output =   preg_replace_callback( '/\%u([0-9A-F]{4})/', '_convert_urlencoded_to_entities', $output );
    310 
    311308    return $output;
    312 }
    313 
    314 /**
    315  * Preview fix for JavaScript bug with foreign languages.
    316  *
    317  * @since 3.1.0
    318  * @access private
    319  *
    320  * @param array $match Match array from preg_replace_callback.
    321  * @return string
    322  */
    323 function _convert_urlencoded_to_entities( $match ) {
    324     return '&#' . base_convert( $match[1], 16, 10 ) . ';';
    325309}
    326310
Note: See TracChangeset for help on using the changeset viewer.