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

WordPress Trac noreply at wordpress.org
Wed Jul 8 02:00:00 UTC 2020


#50571: Homepage missing in the sitemap
--------------------------+---------------------
 Reporter:  Chouby        |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  5.5
Component:  Sitemaps      |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+---------------------

Comment (by elrae):

 I've added a patch with your approach @swissspidy but I excluded the 1 ===
 $pagenum as that variable isn't available in this function. There's also
 no $paged in there to know if we're on the first page. However, the check
 against 'page' === $post_type and the max($min_num_pages,
 $query->max_num_pages) should cover us

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


More information about the wp-trac mailing list