Changeset 8108

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

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

Files:

Legend:

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

    r8069 r8108  
    612612    $format = str_replace('%link', $link, $format); 
    613613 
    614     echo $format; 
     614    $adjacent = $previous ? 'previous' : 'next'; 
     615    echo apply_filters( "{$adjacent}_post_link", $format, $link ); 
    615616} 
    616617