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

WordPress Trac noreply at wordpress.org
Wed Jul 12 09:45:01 UTC 2023


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

 * keywords:  needs-patch 2nd-opinion => needs-patch good-first-bug needs-
     unit-tests
 * milestone:  Future Release => 6.4


Comment:

 Let's just do it.

 - Adding `unset( $public_post_types['page'] );`
 - Adding a test to verify the new behavior

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


More information about the wp-trac mailing list