Ticket #7434: link-template.php.diff

File link-template.php.diff, 949 bytes (added by JohnLamansky, 4 years ago)
  • wp-includes/link-template.php

     
    696696        if ( (! is_single()) && (empty($paged) || $nextpage <= $max_page) ) { 
    697697                echo '<a href="'; 
    698698                next_posts($max_page); 
    699                 echo '">'. preg_replace('/&([^#])(?![a-z]{1,8};)/', '&#038;$1', $label) .'</a>'; 
     699                $attr = apply_filters( 'next_posts_link_attributes', '' ); 
     700                echo "\" $attr>". preg_replace('/&([^#])(?![a-z]{1,8};)/', '&#038;$1', $label) .'</a>'; 
    700701        } 
    701702} 
    702703 
     
    720721        if ( (!is_single())     && ($paged > 1) ) { 
    721722                echo '<a href="'; 
    722723                previous_posts(); 
    723                 echo '">'. preg_replace('/&([^#])(?![a-z]{1,8};)/', '&#038;$1', $label) .'</a>'; 
     724                $attr = apply_filters( 'previous_posts_link_attributes', '' ); 
     725                echo "\" $attr>". preg_replace('/&([^#])(?![a-z]{1,8};)/', '&#038;$1', $label) .'</a>'; 
    724726        } 
    725727} 
    726728