From e15d6779864a00681c4ae02f0769f33dac026a53 Mon Sep 17 00:00:00 2001 From: Jon Cave Date: Thu, 19 Apr 2012 15:08:06 +0000 Subject: [PATCH] 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 --- wp-includes/link-template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php index 392a6b5db7..04fdd95522 100644 --- a/wp-includes/link-template.php +++ b/wp-includes/link-template.php @@ -1563,7 +1563,7 @@ function get_previous_posts_link( $label = null ) { if ( !is_single() && $paged > 1 ) { $attr = apply_filters( 'previous_posts_link_attributes', '' ); - return '". preg_replace( '/&([^#])(?![a-z]{1,8};)/', '&$1', $label ) .''; + return '". preg_replace( '/&([^#])(?![a-z]{1,8};)/i', '&$1', $label ) .''; } }