WordPress.org

Make WordPress Core

Changeset 45945


Ignore:
Timestamp:
09/04/2019 04:31:20 PM (3 months ago)
Author:
whyisjake
Message:

Remove _convert_urlencoded_to_entities() from the get_the_content() callback.

Merges [45937] to the 5.0 branch.

Props vortfu, whyisjake, peterwilsoncc

Location:
branches/5.0
Files:
5 deleted
1 edited

Legend:

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

    r43827 r45945  
    325325    }
    326326
    327     if ( $preview ) // Preview fix for JavaScript bug with foreign languages.
    328         $output =   preg_replace_callback( '/\%u([0-9A-F]{4})/', '_convert_urlencoded_to_entities', $output );
    329 
    330327    return $output;
    331 }
    332 
    333 /**
    334  * Preview fix for JavaScript bug with foreign languages.
    335  *
    336  * @since 3.1.0
    337  * @access private
    338  *
    339  * @param array $match Match array from preg_replace_callback.
    340  * @return string
    341  */
    342 function _convert_urlencoded_to_entities( $match ) {
    343     return '&#' . base_convert( $match[1], 16, 10 ) . ';';
    344328}
    345329
Note: See TracChangeset for help on using the changeset viewer.