WordPress.org

Make WordPress Core

Ticket #9674: 9674.19.diff

File 9674.19.diff, 409 bytes (added by prettyboymp, 4 years ago)

Include $leavename variable in 'post_type_link' filter

  • wp-includes/link-template.php

     
    195195                $post_link = home_url($post_link); 
    196196        } 
    197197 
    198         return apply_filters('post_type_link', $post_link, $id); 
     198        return apply_filters('post_type_link', $post_link, $id, $leavename); 
    199199} 
    200200 
    201201/**