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

git-svn-id: https://develop.svn.wordpress.org/trunk@20537 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jon Cave 2012-04-19 15:08:06 +00:00
parent abaca87e32
commit e15d677986

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>';
}
}