WordPress.org

Make WordPress Core

Changeset 52267


Ignore:
Timestamp:
11/29/2021 09:50:13 AM (7 weeks ago)
Author:
audrasjb
Message:

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.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/feed-atom.php

    r50556 r52267  
    1818    xmlns:thr="http://purl.org/syndication/thread/1.0"
    1919    xml:lang="<?php bloginfo_rss( 'language' ); ?>"
    20     xml:base="<?php bloginfo_rss( 'url' ); ?>/wp-atom.php"
    2120    <?php
    2221    /**
  • trunk/tests/phpunit/tests/feed/atom.php

    r52010 r52267  
    100100        $this->assertSame( 'http://www.w3.org/2005/Atom', $atom[0]['attributes']['xmlns'] );
    101101        $this->assertSame( 'http://purl.org/syndication/thread/1.0', $atom[0]['attributes']['xmlns:thr'] );
    102         $this->assertSame( site_url( '/wp-atom.php' ), $atom[0]['attributes']['xml:base'] );
    103102
    104103        // Verify the <feed> element is present and contains a <title> child element.
Note: See TracChangeset for help on using the changeset viewer.