WordPress.org

Make WordPress Core

Ticket #19640: 19640.diff

File 19640.diff, 473 bytes (added by helenyhou, 3 years ago)
  • wp-includes/link-template.php

     
    13631363        $format = str_replace('%link', $link, $format); 
    13641364 
    13651365        $adjacent = $previous ? 'previous' : 'next'; 
    1366         echo apply_filters( "{$adjacent}_post_link", $format, $link ); 
     1366        echo apply_filters( "{$adjacent}_post_link", $format, $link, $post ); 
    13671367} 
    13681368 
    13691369/**