From 64b7eb383a567aaeab5460c92e82afbd731d1e63 Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Mon, 29 Nov 2021 09:50:13 +0000 Subject: [PATCH] Feeds: Remove reference to `wp-atom.php` in Atom feeds `xml:base` attribute. This change removes the optional `xml:base` attribute for Atom based feeds as `wp-atom.php` file was removed in [18540] (WordPress 3.3). Follow-up to [18540]. Props tw2113, audrasjb, mukesh27. Fixes #47955. git-svn-id: https://develop.svn.wordpress.org/trunk@52267 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/feed-atom.php | 1 - tests/phpunit/tests/feed/atom.php | 1 - 2 files changed, 2 deletions(-) diff --git a/src/wp-includes/feed-atom.php b/src/wp-includes/feed-atom.php index 6388fa3e47..e9e3f49528 100644 --- a/src/wp-includes/feed-atom.php +++ b/src/wp-includes/feed-atom.php @@ -17,7 +17,6 @@ do_action( 'rss_tag_pre', 'atom' ); xmlns="http://www.w3.org/2005/Atom" xmlns:thr="http://purl.org/syndication/thread/1.0" xml:lang="" - xml:base="/wp-atom.php" assertSame( 'http://www.w3.org/2005/Atom', $atom[0]['attributes']['xmlns'] ); $this->assertSame( 'http://purl.org/syndication/thread/1.0', $atom[0]['attributes']['xmlns:thr'] ); - $this->assertSame( site_url( '/wp-atom.php' ), $atom[0]['attributes']['xml:base'] ); // Verify the element is present and contains a child element. $title = xml_find( $xml, 'feed', 'title' );