Make WordPress Core


Ignore:
Timestamp:
06/25/2020 11:39:23 AM (6 years ago)
Author:
SergeyBiryukov
Message:

Canonical: Move trailing slash handling for robots.txt and sitemaps to a single condition.

Give the unit test a more descriptive name.

Follow-up to [48153], [48155].

See #48025.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/canonical/sitemaps.php

    r48072 r48166  
    88 */
    99class Tests_Canonical_Sitemaps extends WP_Canonical_UnitTestCase {
     10
    1011        public function setUp() {
    1112                parent::setUp();
     
    3940                $this->assertCanonical( '/wp-sitemap.xsl/', '/wp-sitemap.xsl' );
    4041        }
     42
    4143}
Note: See TracChangeset for help on using the changeset viewer.