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

WordPress Trac noreply at wordpress.org
Tue Aug 9 10:21:46 UTC 2022


#56336: Fatal Error/Warning when invalid `sitemap` query var presented.
-------------------------------------------+----------------------------
 Reporter:  dd32                           |       Owner:  peterwilsoncc
     Type:  defect (bug)                   |      Status:  closed
 Priority:  normal                         |   Milestone:  6.1
Component:  Sitemaps                       |     Version:
 Severity:  normal                         |  Resolution:  fixed
 Keywords:  php8 has-patch has-unit-tests  |     Focuses:
-------------------------------------------+----------------------------

Comment (by audrasjb):

 In [changeset:"53869" 53869]:
 {{{
 #!CommitTicketReference repository="" revision="53869"
 Taxonomy: Prevent non string taxonomy names generating warnings or errors.

 This changeset adds an `is_string( $taxonomy )` check to the condition in
 `taxonomy_exists()`, to ensure `false` is returned when the `$taxonomy` is
 not a string.

 Follow-up to [35718].

 Props costdev, peterwilsoncc, mukesh27.
 Fixes #56338.
 See #56336.
 }}}

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


More information about the wp-trac mailing list