Ticket #18632: link-template-patch.diff
File link-template-patch.diff, 524 bytes (added by , 14 years ago) |
---|
-
wp-includes/link-template.php
2405 2405 $shortlink = ''; 2406 2406 2407 2407 // Return p= link for posts. 2408 if ( !empty($post_id) && '' != get_option('permalink_structure')) {2408 if ( !empty($post_id) ) { 2409 2409 $post = get_post($post_id); 2410 2410 if ( isset($post->post_type) && 'post' == $post->post_type ) 2411 2411 $shortlink = home_url('?p=' . $post->ID);