WordPress.org

Make WordPress Core

Changeset 8487


Ignore:
Timestamp:
07/29/08 19:52:44 (7 years ago)
Author:
westi
Message:

Pass $leavename to filters in get_permalink. Fixes #7421.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/link-template.php

    r8478 r8487  
    113113        $permalink = get_option('home') . str_replace($rewritecode, $rewritereplace, $permalink); 
    114114        $permalink = user_trailingslashit($permalink, 'single'); 
    115         return apply_filters('post_link', $permalink, $post); 
     115        return apply_filters('post_link', $permalink, $post, $leavename); 
    116116    } else { // if they're not using the fancy permalink option 
    117117        $permalink = get_option('home') . '/?p=' . $post->ID; 
    118         return apply_filters('post_link', $permalink, $post); 
     118        return apply_filters('post_link', $permalink, $post, $leavename); 
    119119    } 
    120120} 
Note: See TracChangeset for help on using the changeset viewer.