mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
Escape the guid urls when placing them in feeds and other xml locations. See #13555.
git-svn-id: https://develop.svn.wordpress.org/trunk@14947 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -73,7 +73,7 @@ if ( have_comments() ) : while ( have_comments() ) : the_comment();
|
||||
<?php endif; // post pass
|
||||
// Return comment threading information (http://www.ietf.org/rfc/rfc4685.txt)
|
||||
if ( $comment->comment_parent == 0 ) : // This comment is top level ?>
|
||||
<thr:in-reply-to ref="<?php the_guid() ?>" href="<?php the_permalink_rss() ?>" type="<?php bloginfo_rss('html_type'); ?>" />
|
||||
<thr:in-reply-to ref="<?php esc_url( the_guid() ); ?>" href="<?php the_permalink_rss() ?>" type="<?php bloginfo_rss('html_type'); ?>" />
|
||||
<?php else : // This comment is in reply to another comment
|
||||
$parent_comment = get_comment($comment->comment_parent);
|
||||
// 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
|
||||
|
||||
Reference in New Issue
Block a user