diff --git a/wp-includes/template-functions.php b/wp-includes/template-functions.php index 11afebaef2..7103ecf8bf 100644 --- a/wp-includes/template-functions.php +++ b/wp-includes/template-functions.php @@ -1265,7 +1265,7 @@ function next_posts_link($label='Next Page »', $max_page=0) { if (empty($p) && (empty($paged) || $nextpage <= $max_page)) { echo ''. htmlspecialchars($label) .''; + echo '">'. preg_replace('/&([^#])(?![a-z]{1,8};)/', '&$1', $label) .''; } } } @@ -1301,7 +1301,7 @@ function previous_posts_link($label='« Previous Page') { if (empty($p) && ($paged > 1) && ($what_to_show == 'paged')) { echo ''. htmlspecialchars($label) .''; + echo '">'. preg_replace('/&([^#])(?![a-z]{1,8};)/', '&$1', $label) .''; } } @@ -1317,7 +1317,7 @@ function posts_nav_link($sep=' :: ', $prelabel='<< Previous Page', $nxtlabel='Ne $max_page = ceil($numposts / $posts_per_page); if ($max_page > 1) { previous_posts_link($prelabel); - echo htmlspecialchars($sep); + echo preg_replace('/&([^#])(?![a-z]{1,8};)/', '&$1', $sep); next_posts_link($nxtlabel, $max_page); } }