Make WordPress Core

Changeset 45961 for branches/4.2


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

Remove _convert_urlencoded_to_entities() from the get_the_content() callback.

Merges [45937] to the 4.2 branch.

Props vortfu, whyisjake, peterwilsoncc

Location:
branches/4.2
Files:
5 deleted
1 edited

Legend:

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

    r37789 r45961  
    300300    }
    301301
    302     if ( $preview ) // Preview fix for JavaScript bug with foreign languages.
    303         $output =   preg_replace_callback( '/\%u([0-9A-F]{4})/', '_convert_urlencoded_to_entities', $output );
    304 
    305302    return $output;
    306 }
    307 
    308 /**
    309  * Preview fix for JavaScript bug with foreign languages.
    310  *
    311  * @since 3.1.0
    312  * @access private
    313  * @param array $match Match array from preg_replace_callback
    314  * @return string
    315  */
    316 function _convert_urlencoded_to_entities( $match ) {
    317     return '&#' . base_convert( $match[1], 16, 10 ) . ';';
    318303}
    319304
Note: See TracChangeset for help on using the changeset viewer.