Changeset 14490
- Timestamp:
- 05/06/2010 09:20:17 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/link-template.php
r14429 r14490 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 = '';
Note: See TracChangeset
for help on using the changeset viewer.