Changeset 10387
- Timestamp:
- 01/20/2009 08:56:40 PM (16 years ago)
- Location:
- branches/2.7/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.7/wp-includes/feed-atom-comments.php
r10216 r10387 65 65 </author> 66 66 67 <id><?php comment_ link(); ?></id>67 <id><?php comment_guid(); ?></id> 68 68 <updated><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_comment_time('Y-m-d H:i:s', true), false); ?></updated> 69 69 <published><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_comment_time('Y-m-d H:i:s', true), false); ?></published> … … 80 80 // The rel attribute below and the id tag above should be GUIDs, but WP doesn't create them for comments (unlike posts). Either way, its more important that they both use the same system 81 81 ?> 82 <thr:in-reply-to ref="<?php echo get_comment_link($parent_comment) ?>" href="<?php echo get_comment_link($parent_comment) ?>" type="<?php bloginfo_rss('html_type'); ?>" />82 <thr:in-reply-to ref="<?php comment_guid($parent_comment) ?>" href="<?php echo get_comment_link($parent_comment) ?>" type="<?php bloginfo_rss('html_type'); ?>" /> 83 83 <?php endif; 84 84 do_action('comment_atom_entry', $comment->comment_ID, $comment_post->ID); -
branches/2.7/wp-includes/feed.php
r10333 r10387 224 224 * @subpackage Feed 225 225 * @since unknown 226 */ 227 function comment_guid() { 228 echo get_comment_guid(); 226 * 227 * @param int|object $comment_id Optional comment object or id. Defaults to global comment object. 228 */ 229 function comment_guid($comment_id = null) { 230 echo get_comment_guid($comment_id); 229 231 } 230 232 … … 236 238 * @since unknown 237 239 * 240 * @param int|object $comment_id Optional comment object or id. Defaults to global comment object. 238 241 * @return bool|string false on failure or guid for comment on success. 239 242 */ 240 function get_comment_guid( ) {241 global $comment;243 function get_comment_guid($comment_id = null) { 244 $comment = get_comment($comment_id); 242 245 243 246 if ( !is_object($comment) )
Note: See TracChangeset
for help on using the changeset viewer.