Changeset 8109

Show
Ignore:
Timestamp:
06/16/08 22:27:20 (4 months ago)
Author:
ryan
Message:

previous_post_link and next_post_link filters. Props JohnLamansky?. fixes #6985 for 2.5

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/2.5/wp-includes/link-template.php

    r8001 r8109  
    600600    $format = str_replace('%link', $link, $format); 
    601601 
    602     echo $format; 
     602    $adjacent = $previous ? 'previous' : 'next'; 
     603    echo apply_filters( "{$adjacent}_post_link", $format, $link ); 
    603604} 
    604605