diff --git a/wp-app.php b/wp-app.php index d5eee74f3..f8feb372e 100644 --- a/wp-app.php +++ b/wp-app.php @@ -1150,7 +1150,7 @@ EOD; function echo_entry() { ?> - ID ) ); ?> + ID ); ?> <?php echo $content ?> @@ -1167,7 +1167,7 @@ EOD; post_type == 'attachment') { ?> - + post_content ) ) : diff --git a/wp-includes/feed-atom-comments.php b/wp-includes/feed-atom-comments.php index 5c665d54e..ab3447d3f 100644 --- a/wp-includes/feed-atom-comments.php +++ b/wp-includes/feed-atom-comments.php @@ -73,7 +73,7 @@ if ( have_comments() ) : while ( have_comments() ) : the_comment(); comment_parent == 0 ) : // This comment is top level ?> - + 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 diff --git a/wp-includes/feed-atom.php b/wp-includes/feed-atom.php index fa53358da..b23dffcd9 100644 --- a/wp-includes/feed-atom.php +++ b/wp-includes/feed-atom.php @@ -36,7 +36,7 @@ echo ''; ?> <![CDATA[<?php the_title_rss() ?>]]> - + diff --git a/wp-includes/feed-rss2.php b/wp-includes/feed-rss2.php index 3ee707e58..e97ddd5b9 100644 --- a/wp-includes/feed-rss2.php +++ b/wp-includes/feed-rss2.php @@ -39,7 +39,7 @@ echo ''; ?> - + ]]> diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index 2a4f5db09..a459df0bd 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -127,13 +127,15 @@ function get_the_title( $id = 0 ) { * The guid will appear to be a link, but should not be used as an link to the * post. The reason you should not use it as a link, is because of moving the * blog across domains. + * + * Url is escaped to make it xml safe * * @since 1.5.0 * * @param int $id Optional. Post ID. */ function the_guid( $id = 0 ) { - echo get_the_guid($id); + echo esc_url( get_the_guid($id) ); } /**