[wp-trac] [WordPress Trac] #50660: Not all sitemaps providers can be filtered
WordPress Trac
noreply at wordpress.org
Tue Jul 21 16:13:04 UTC 2020
#50660: Not all sitemaps providers can be filtered
------------------------------+-------------------------
Reporter: Chouby | Owner: swissspidy
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.5
Component: Sitemaps | Version: trunk
Severity: normal | Resolution: fixed
Keywords: has-patch commit | Focuses:
------------------------------+-------------------------
Changes (by swissspidy):
* owner: (none) => swissspidy
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"48543" 48543]:
{{{
#!CommitTicketReference repository="" revision="48543"
Sitemaps: Replace `wp_sitemaps_register_providers` filter with more
suitable `wp_sitemaps_add_provider` filter.
The previous filter failed the goal of allowing developers to filter all
providers before they are registered, since it only filtered the built-in
ones.
The more specific `wp_sitemaps_add_provider` filter enables exactly that,
as it filters every sitemap provider right before it is added to the
sitemaps registry.
Props pbiron, pfefferle, Chouby, swissspidy.
Fixes #50660.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50660#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list