WordPress.org

Make WordPress Core

Changeset 14068


Ignore:
Timestamp:
04/11/10 08:58:40 (4 years ago)
Author:
dd32
Message:

Correct sample URL's for custom post_type's. uses pretty permalinks if possible. Props duck_. See #12870

File:
1 edited

Legend:

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

    r14019 r14068  
    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'); 
Note: See TracChangeset for help on using the changeset viewer.