WordPress.org

Make WordPress Core

Changeset 8108


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

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

File:
1 edited

Legend:

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