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
This commit is contained in:
Jb Audras 2021-11-29 09:50:13 +00:00
parent 94421fc210
commit 64b7eb383a
2 changed files with 0 additions and 2 deletions

View File

@ -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="<?php bloginfo_rss( 'language' ); ?>"
xml:base="<?php bloginfo_rss( 'url' ); ?>/wp-atom.php"
<?php
/**
* Fires at end of the Atom feed root to add namespaces.

View File

@ -99,7 +99,6 @@ class Tests_Feed_Atom extends WP_UnitTestCase {
// Verify attributes.
$this->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 <feed> element is present and contains a <title> child element.
$title = xml_find( $xml, 'feed', 'title' );