Make WordPress Core


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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/formatting.php

    r16280 r16313  
    237237    $pee = preg_replace('!(</?' . $allblocks . '[^>]*>)\s*</p>!', "$1", $pee);
    238238    if ($br) {
    239         $pee = preg_replace_callback('/<(script|style).*?<\/\\1>/s', '__autop_newline_preservation_helper', $pee);
     239        $pee = preg_replace_callback('/<(script|style).*?<\/\\1>/s', '_autop_newline_preservation_helper', $pee);
    240240        $pee = preg_replace('|(?<!<br />)\s*\n|', "<br />\n", $pee); // optionally make line breaks
    241241        $pee = str_replace('<WPPreserveNewline />', "\n", $pee);
     
    258258 * @returns string
    259259 */
    260 function __autop_newline_preservation_helper( $matches ) {
     260function _autop_newline_preservation_helper( $matches ) {
    261261    return str_replace("\n", "<WPPreserveNewline />", $matches[0]);
    262262}
     
    15961596    } else {
    15971597        $subject = str_replace('_', ' ', $matches[2]);
    1598         $subject = preg_replace_callback('#\=([0-9a-f]{2})#i', '__wp_iso_convert', $subject);
     1598        $subject = preg_replace_callback('#\=([0-9a-f]{2})#i', '_wp_iso_convert', $subject);
    15991599        return $subject;
    16001600    }
     
    16081608 * @param $match the preg_replace_callback matches array
    16091609 */
    1610 function __wp_iso_convert( $match ) {
     1610function _wp_iso_convert( $match ) {
    16111611    return chr( hexdec( strtolower( $match[1] ) ) );
    16121612}
Note: See TracChangeset for help on using the changeset viewer.