[wp-trac] [WordPress Trac] #55239: Filter hook wp_sitemaps_taxonomies_entry passes Term ID not Object
WordPress Trac
noreply at wordpress.org
Thu Mar 10 03:59:50 UTC 2022
#55239: Filter hook wp_sitemaps_taxonomies_entry passes Term ID not Object
-------------------------------------+----------------------------
Reporter: RavanH | Owner: peterwilsoncc
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.0
Component: Sitemaps | Version: 5.9.1
Severity: minor | Resolution: fixed
Keywords: has-patch needs-refresh | Focuses: docs
-------------------------------------+----------------------------
Changes (by peterwilsoncc):
* owner: (none) => peterwilsoncc
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"52834" 52834]:
{{{
#!CommitTicketReference repository="" revision="52834"
Sitemaps: Pass term object to `wp_sitemaps_taxonomies_entry` filter.
Add a forth parameter to the `wp_sitemaps_taxonomies_entry` filter to pass
the entire `WP_Term` object.
Correct the documentation for the second parameter of the
`wp_sitemaps_taxonomies_entry` filter to indicate it is a term ID rather
than term object.
Props RavanH, swissspidy, audrasjb.
Fixes #55239.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55239#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list