WordPress.org

Make WordPress Core

Changeset 45969


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

Remove _convert_urlencoded_to_entities() from the get_the_content() callback.

Merges [45937] to the 3.7 branch.

Props vortfu, whyisjake, peterwilsoncc

Location:
branches/3.7
Files:
5 deleted
1 edited

Legend:

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

    r37795 r45969  
    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.