Make WordPress Core


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

Remove _convert_urlencoded_to_entities() from the get_the_content() callback.

Merges [45937] to the 3.8 branch.

Props vortfu, whyisjake, peterwilsoncc

File:
1 edited

Legend:

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

    r37794 r45968  
    227227    }
    228228
    229     if ( $preview ) // preview fix for javascript bug with foreign languages
    230         $output =   preg_replace_callback( '/\%u([0-9A-F]{4})/', '_convert_urlencoded_to_entities', $output );
    231 
    232229    return $output;
    233 }
    234 
    235 /**
    236  * Preview fix for javascript bug with foreign languages
    237  *
    238  * @since 3.1.0
    239  * @access private
    240  * @param array $match Match array from preg_replace_callback
    241  * @return string
    242  */
    243 function _convert_urlencoded_to_entities( $match ) {
    244     return '&#' . base_convert( $match[1], 16, 10 ) . ';';
    245230}
    246231
Note: See TracChangeset for help on using the changeset viewer.