[wp-trac] [WordPress Trac] #57816: WordPress shows author archive in sitemap even if there are no posts

WordPress Trac noreply at wordpress.org
Tue Sep 26 12:40:51 UTC 2023


#57816: WordPress shows author archive in sitemap even if there are no posts
-------------------------------------------------+-------------------------
 Reporter:  zodiac1978                           |       Owner:  swissspidy
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  6.4
Component:  Sitemaps                             |     Version:  5.5
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  good-first-bug has-patch has-unit-   |     Focuses:
  tests commit                                   |
-------------------------------------------------+-------------------------
Changes (by swissspidy):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"56708" 56708]:
 {{{
 #!CommitTicketReference repository="" revision="56708"
 Sitemaps: do not list users who only authored pages.

 Author archives are only generated for users who created at least one
 post.
 Prevent adding author archives to the XML sitemap for users who only
 authored pages
 as the links would otherwise result in a 404.

 Props zodiac1978, huzaifaalmesbah.
 Fixes #57816.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57816#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list