Changes from trunk/wp-includes/post-template.php at r10150 to branches/2.7/wp-includes/post-template.php at r10491
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.7/wp-includes/post-template.php
r10150 r10491 224 224 } 225 225 if ( $preview ) // preview fix for javascript bug with foreign languages 226 $output = preg_replace ('/\%u([0-9A-F]{4,4})/e', "'&#'.base_convert('\\1',16,10).';'", $output);226 $output = preg_replace_callback('/\%u([0-9A-F]{4})/', create_function('$match', 'return "&#" . base_convert($match[1], 16, 10) . ";";'), $output); 227 227 228 228 return $output; … … 608 608 609 609 // sanitize, mostly to keep spaces out 610 $r['exclude'] = preg_replace(' [^0-9,]', '', $r['exclude']);610 $r['exclude'] = preg_replace('/[^0-9,]/', '', $r['exclude']); 611 611 612 612 // Allow plugins to filter an array of excluded pages … … 681 681 if ( is_front_page() && !is_paged() ) 682 682 $class = 'class="current_page_item"'; 683 $menu .= '<li ' . $class . '><a href="' . get_option('home') . '">' . $ link_before . $text . $link_after. '</a></li>';683 $menu .= '<li ' . $class . '><a href="' . get_option('home') . '">' . $args['link_before'] . $text . $args['link_after'] . '</a></li>'; 684 684 // If the front page is a page, add it to the exclude list 685 685 if (get_option('show_on_front') == 'page') { … … 1049 1049 $currentf = __( '%s [Current Revision]' ); 1050 1050 1051 $date = date_i18n( $datef, strtotime( $revision->post_modified _gmt . ' +0000') );1051 $date = date_i18n( $datef, strtotime( $revision->post_modified ) ); 1052 1052 if ( $link && current_user_can( 'edit_post', $revision->ID ) && $link = get_edit_post_link( $revision->ID ) ) 1053 1053 $date = "<a href='$link'>$date</a>";
Note: See TracChangeset
for help on using the changeset viewer.