I was getting an error saying: array_map(): Argument #2 ($array) must be of type array, string given when I have defined IDs to be excluded from the sitemap.
How
Getting an array by exploding the string and using array_map with an absint (like it's done in other places in the plugin).
Checklist:
[x] My code is tested to the best of my abilities.
[x] My code follows the WordPress Coding Standards.
[X] The changes in this PR have been noted in CHANGELOG.md
What
I was getting an error saying:
array_map(): Argument #2 ($array) must be of type array, string given
when I have defined IDs to be excluded from the sitemap.How
Getting an array by exploding the string and using
array_map
with anabsint
(like it's done in other places in the plugin).Checklist: