Handle uppercase HTML entities in get_previous_posts_link(). Props ounziw. See #4152, fixes #19803.

git-svn-id: http://svn.automattic.com/wordpress/trunk@20537 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
duck_ 2012-04-19 15:08:06 +00:00
parent 539bffd7fa
commit 9eaf6fc4c3
1 changed files with 1 additions and 1 deletions

View File

@ -1563,7 +1563,7 @@ function get_previous_posts_link( $label = null ) {
if ( !is_single() && $paged > 1 ) {
$attr = apply_filters( 'previous_posts_link_attributes', '' );
return '<a href="' . previous_posts( false ) . "\" $attr>". preg_replace( '/&([^#])(?![a-z]{1,8};)/', '&#038;$1', $label ) .'</a>';
return '<a href="' . previous_posts( false ) . "\" $attr>". preg_replace( '/&([^#])(?![a-z]{1,8};)/i', '&#038;$1', $label ) .'</a>';
}
}