[wp-trac] [WordPress Trac] #51280: wp_register_sitemap_provider() breaks sitemap functionality if provider name contains a dash (-)
WordPress Trac
noreply at wordpress.org
Wed Sep 9 21:39:52 UTC 2020
#51280: wp_register_sitemap_provider() breaks sitemap functionality if provider
name contains a dash (-)
--------------------------+------------------------------
Reporter: MadtownLems | Owner: pbiron
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: Awaiting Review
Component: Sitemaps | Version: 5.5
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Changes (by pbiron):
* owner: (none) => pbiron
* status: new => assigned
Comment:
Thank you for the report.
I can confirm the described behavior. It's not just dash (`-`): any
character not in the range `[a-z]` causes the same results.
Additionally, the `$name` parameter of `wp_register_sitemap_provider()`
**must** be the same as the `$name` property of the `WP_Sitemaps_Provider`
subclass instance passed in the `$provider` param...and that is not
currently documented anywhere.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51280#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list