[wp-trac] [WordPress Trac] #56336: Fatal Error/Warning when invalid `sitemap` query var presented.

WordPress Trac noreply at wordpress.org
Fri Aug 5 04:42:39 UTC 2022


#56336: Fatal Error/Warning when invalid `sitemap` query var presented.
------------------------------+------------------------------
 Reporter:  dd32              |       Owner:  (none)
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  Sitemaps          |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  php8 needs-patch  |     Focuses:
------------------------------+------------------------------

Comment (by dd32):

 Thanks @costdev!

 Adding the type check to `WP_Sitemaps_Registry::get_provider()` appears to
 work for me, the `taxonomy_exists()` change didn't seem to be required in
 my environment but I can't see any harm in it or reason not to include it
 in the same change.

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


More information about the wp-trac mailing list