From 9eaf6fc4c3fab032f6c2ad9628d6cd6ff55d0cba Mon Sep 17 00:00:00 2001 From: duck_ 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: http://svn.automattic.com/wordpress/trunk@20537 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 392a6b5db..04fdd9552 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 ) .''; } }