Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r10491 r10150  
    224224        }
    225225        if ( $preview ) // preview fix for javascript bug with foreign languages
    226                 $output =       preg_replace_callback('/\%u([0-9A-F]{4})/', create_function('$match', 'return "&#" . base_convert($match[1], 16, 10) . ";";'), $output);
     226                $output =       preg_replace('/\%u([0-9A-F]{4,4})/e',   "'&#'.base_convert('\\1',16,10).';'", $output);
    227227
    228228        return $output;
    … …  
    608608
    609609        // sanitize, mostly to keep spaces out
    610         $r['exclude'] = preg_replace('/[^0-9,]/', '', $r['exclude']);
     610        $r['exclude'] = preg_replace('[^0-9,]', '', $r['exclude']);
    611611
    612612        // Allow plugins to filter an array of excluded pages
    … …  
    681681                if ( is_front_page() && !is_paged() )
    682682                        $class = 'class="current_page_item"';
    683                 $menu .= '<li ' . $class . '><a href="' . get_option('home') . '">' . $args['link_before'] . $text . $args['link_after'] . '</a></li>';
     683                $menu .= '<li ' . $class . '><a href="' . get_option('home') . '">' . $link_before . $text . $link_after . '</a></li>';
    684684                // If the front page is a page, add it to the exclude list
    685685                if (get_option('show_on_front') == 'page') {
    … …  
    10491049        $currentf  = __( '%s [Current Revision]' );
    10501050
    1051         $date = date_i18n( $datef, strtotime( $revision->post_modified ) );
     1051        $date = date_i18n( $datef, strtotime( $revision->post_modified_gmt . ' +0000' ) );
    10521052        if ( $link && current_user_can( 'edit_post', $revision->ID ) && $link = get_edit_post_link( $revision->ID ) )
    10531053                $date = "<a href='$link'>$date</a>";
Note: See TracChangeset for help on using the changeset viewer.