Make WordPress Core

Ticket #18632: link-template-patch.diff

File link-template-patch.diff, 524 bytes (added by cais, 14 years ago)
  • wp-includes/link-template.php

     
    24052405        $shortlink = '';
    24062406
    24072407        // Return p= link for posts.
    2408         if ( !empty($post_id) && '' != get_option('permalink_structure') ) {
     2408        if ( !empty($post_id) ) {
    24092409                $post = get_post($post_id);
    24102410                if ( isset($post->post_type) && 'post' == $post->post_type )
    24112411                        $shortlink = home_url('?p=' . $post->ID);