From f83829ca4edc23c436377e43a4cca0a6c99b0870 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 16 Apr 2019 00:45:05 +0000 Subject: [PATCH] Feeds: Remove whitespace from `` elements in Atom feeds. Per Atom format's RFC, there must not be any whitespace in a Date construct or in any IRI. Props josephwa. Fixes #46922. git-svn-id: https://develop.svn.wordpress.org/trunk@45208 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/feed-atom-comments.php | 7 +++---- src/wp-includes/feed-atom.php | 7 +++---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/wp-includes/feed-atom-comments.php b/src/wp-includes/feed-atom-comments.php index fe92ed71fa..4e59ee2ce1 100644 --- a/src/wp-includes/feed-atom-comments.php +++ b/src/wp-includes/feed-atom-comments.php @@ -43,12 +43,11 @@ do_action( 'rss_tag_pre', 'atom-comments' ); - - - + // phpcs:ignore Squiz.PHP.EmbeddedPhp.ContentAfterEnd + ?> diff --git a/src/wp-includes/feed-atom.php b/src/wp-includes/feed-atom.php index a30ae3e3b1..12508b4dc3 100644 --- a/src/wp-includes/feed-atom.php +++ b/src/wp-includes/feed-atom.php @@ -30,12 +30,11 @@ do_action( 'rss_tag_pre', 'atom' ); <?php wp_title_rss(); ?> - - - + // phpcs:ignore Squiz.PHP.EmbeddedPhp.ContentAfterEnd + ?>