WordPress.org

Make WordPress Core

Ticket #12870: link-template.php.diff

File link-template.php.diff, 566 bytes (added by duck_, 4 years ago)
  • wp-includes/link-template.php

     
    108108        elseif ( $post->post_type == 'attachment' ) 
    109109                return get_attachment_link($post->ID); 
    110110        elseif ( in_array($post->post_type, get_post_types( array('_builtin' => false) ) ) ) 
    111                 return get_post_permalink($post, $leavename); 
     111                return get_post_permalink($post, $leavename, $sample); 
    112112 
    113113        $permalink = get_option('permalink_structure'); 
    114114