WordPress.org

Make WordPress Core

Changeset 12012


Ignore:
Timestamp:
10/08/09 21:04:04 (5 years ago)
Author:
westi
Message:

Add a filter to the_author_posts_link(). Fixes #10691 props sirzooro and filosofo.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/author-template.php

    r11849 r12012  
    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 ), 
     
    185185        get_the_author() 
    186186    ); 
     187    echo apply_filters( 'the_author_posts_link', $link ); 
    187188} 
    188189 
Note: See TracChangeset for help on using the changeset viewer.