Make WordPress Core


Ignore:
Timestamp:
03/28/2010 05:23:49 AM (12 years ago)
Author:
dd32
Message:

Fix the Permalink editor for custom post_types. Fixes #12742

File:
1 edited

Legend:

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

    r13831 r13865  
    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);
     111        return get_post_permalink($post, $leavename);
    112112
    113113    $permalink = get_option('permalink_structure');
Note: See TracChangeset for help on using the changeset viewer.