WordPress.org

Make WordPress Core

Ticket #6985: link-template.php.diff

File link-template.php.diff, 459 bytes (added by JohnLamansky, 10 years ago)
  • wp-includes/link-template.php

     
    611611
    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
    617618function get_pagenum_link($pagenum = 1) {