[wp-trac] [WordPress Trac] #50571: Homepage missing in the sitemap

WordPress Trac noreply at wordpress.org
Mon Jul 6 14:25:02 UTC 2020


#50571: Homepage missing in the sitemap
--------------------------+-----------------------------
 Reporter:  Chouby        |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Sitemaps      |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 On a fresh install,

 1. Unpublish the sample page to make sure that no page is published.
 2. Go to the sitemaps index.

 There is no entry for pages as we could expect. But as the hompepage is
 listed in the list of pages, that means that the homepage is not indexed.

 The issue is because the method `WP_Sitemaps_Posts::get_max_num_pages()`
 returns 0 when there are no pages.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50571>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list