[wp-trac] [WordPress Trac] #55633: First sitemap has more URLs than expected with sticky posts
WordPress Trac
noreply at wordpress.org
Wed Jun 22 16:50:38 UTC 2022
#55633: First sitemap has more URLs than expected with sticky posts
---------------------------------------------+-----------------------
Reporter: RavanH | Owner: audrasjb
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.1
Component: Sitemaps | Version: 5.5
Severity: minor | Resolution: fixed
Keywords: has-patch commit has-unit-tests | Focuses:
---------------------------------------------+-----------------------
Comment (by SergeyBiryukov):
In [changeset:"53556" 53556]:
{{{
#!CommitTicketReference repository="" revision="53556"
Tests: Improve the test for sticky posts not being moved to the front in
sitemaps.
* Give the test method a most descriptive name.
* Use a single assertion for the URL list instead of a `foreach` loop to
provide more context in case of failure.
* Add a failure message to each assertion, as there are multiple
assertions used in the test.
Follow-up to [53548].
See #55633.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55633#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list