Ticket #13212: 13212.2.diff
File 13212.2.diff, 572 bytes (added by , 15 years ago) |
---|
-
wp-includes/link-template.php
2172 2172 2173 2173 global $wp_query; 2174 2174 $post_id = 0; 2175 if ( 'query' == $context && is_single() ) 2175 if ( 'query' == $context && is_single() ) { 2176 2176 $post_id = $wp_query->get_queried_object_id(); 2177 elseif ( 'post' == $context ) 2178 $post_id = $id; 2177 } elseif ( 'post' == $context ) { 2178 $post = get_post($id); 2179 $post_id = $post->ID; 2180 } 2179 2181 2180 2182 $shortlink = ''; 2181 2183