WordPress.org

Make WordPress Core

Changeset 45937


Ignore:
Timestamp:
09/04/2019 04:08:31 PM (13 days ago)
Author:
whyisjake
Message:

Remove _convert_urlencoded_to_entities() from the get_the_content() callback.

Props vortfu, whyisjake, peterwilsoncc

Location:
branches/5.2
Files:
5 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.2

  • branches/5.2/src/wp-includes/post-template.php

    r45261 r45937  
    363363    }
    364364
    365     if ( $preview ) { // Preview fix for JavaScript bug with foreign languages.
    366         $output = preg_replace_callback( '/\%u([0-9A-F]{4})/', '_convert_urlencoded_to_entities', $output );
    367     }
    368 
    369365    return $output;
    370 }
    371 
    372 /**
    373  * Preview fix for JavaScript bug with foreign languages.
    374  *
    375  * @since 3.1.0
    376  * @access private
    377  *
    378  * @param array $match Match array from preg_replace_callback.
    379  * @return string
    380  */
    381 function _convert_urlencoded_to_entities( $match ) {
    382     return '&#' . base_convert( $match[1], 16, 10 ) . ';';
    383366}
    384367
Note: See TracChangeset for help on using the changeset viewer.