WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/02/2010 08:52:22 PM (11 years ago)
Author:
westi
Message:

Let the filters know its a sample permalink. Props yoast.

File:
1 edited

Legend:

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

    r14948 r15117  
    205205    }
    206206
    207     return apply_filters('post_type_link', $post_link, $id, $leavename);
     207    return apply_filters('post_type_link', $post_link, $id, $leavename, $sample);
    208208}
    209209
     
    248248        $link = _get_page_link( $id , $leavename, $sample );
    249249
    250     return apply_filters('page_link', $link, $id);
     250    return apply_filters('page_link', $link, $id, $sample);
    251251}
    252252
Note: See TracChangeset for help on using the changeset viewer.