diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php
index f27fbe5512..ea4b07b0e0 100644
--- a/wp-includes/link-template.php
+++ b/wp-includes/link-template.php
@@ -696,7 +696,8 @@ function next_posts_link($label='Next Page »', $max_page=0) {
if ( (! is_single()) && (empty($paged) || $nextpage <= $max_page) ) {
echo ''. preg_replace('/&([^#])(?![a-z]{1,8};)/', '&$1', $label) .'';
+ $attr = apply_filters( 'next_posts_link_attributes', '' );
+ echo "\" $attr>". preg_replace('/&([^#])(?![a-z]{1,8};)/', '&$1', $label) .'';
}
}
@@ -720,7 +721,8 @@ function previous_posts_link($label='« Previous Page') {
if ( (!is_single()) && ($paged > 1) ) {
echo ''. preg_replace('/&([^#])(?![a-z]{1,8};)/', '&$1', $label) .'';
+ $attr = apply_filters( 'previous_posts_link_attributes', '' );
+ echo "\" $attr>". preg_replace('/&([^#])(?![a-z]{1,8};)/', '&$1', $label) .'';
}
}