WordPress.org

Make WordPress Core

Ticket #10691: author-template.php.10691.diff

File author-template.php.10691.diff, 612 bytes (added by filosofo, 5 years ago)
  • wp-includes/author-template.php

     
    178178 */ 
    179179function the_author_posts_link($deprecated = '') { 
    180180        global $authordata; 
    181         printf( 
     181        $link = sprintf( 
    182182                '<a href="%1$s" title="%2$s">%3$s</a>', 
    183183                get_author_posts_url( $authordata->ID, $authordata->user_nicename ), 
    184184                esc_attr( sprintf( __( 'Posts by %s' ), get_the_author() ) ), 
    185185                get_the_author() 
    186186        ); 
     187        echo apply_filters( 'the_author_posts_link', $link ); 
    187188} 
    188189 
    189190/**