WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/11/2010 10:50:36 PM (9 years ago)
Author:
nacin
Message:

Remove more create_function calls. props huichen, see #14424.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post-template.php

    r16283 r16313  
    224224    }
    225225    if ( $preview ) // preview fix for javascript bug with foreign languages
    226         $output =   preg_replace_callback('/\%u([0-9A-F]{4})/', '__convert_urlencoded_to_entities', $output);
     226        $output =   preg_replace_callback('/\%u([0-9A-F]{4})/', '_convert_urlencoded_to_entities', $output);
    227227
    228228    return $output;
     
    237237 * @returns string
    238238 */
    239 function __convert_urlencoded_to_entities($match) {
    240     return '&#' . base_convert($match[1], 16, 10) . ';';
     239function _convert_urlencoded_to_entities( $match ) {
     240    return '&#' . base_convert( $match[1], 16, 10 ) . ';';
    241241}
    242242
Note: See TracChangeset for help on using the changeset viewer.