Make WordPress Core

Changeset 8109


Ignore:
Timestamp:
06/16/2008 10:27:20 PM (17 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.