Hello,
I got these errors when I using the_seo_framework_sitemap_exclude_ids filter.
Notice: Undefined variable: included in /Users/Me/Documents/_www/htdocs_project/wordpress/wp-content/plugins/autodescription/inc/classes/sitemaps.class.php on line 1075
聽
Solution is easy (I think), just add $included variable (with false value) to top of the is_post_included_in_sitemap() method (which is defined in /inc/classes/sitemaps.class.php - at line 1052).
Thank you!! :)
This was reported on WordPress.org earlier. Thanks for reminding me!
Here's a valid and sustainable workaround, it is by prepending a ID of -1 (because false can result to 0):
add_filter( 'the_seo_framework_sitemap_exclude_ids', 'my_sitemap_exclude_ids' );
function my_sitemap_exclude_ids() {
$ids = array( -1, 1086 );
return $ids;
}
Oh, thanks for very fast reply and for the valid and sustainable workaround :). Have a nice day.
Whoops... I got myself confused.
The issue I mentioned was resolved in 3.0.6.
The fix for this issue was brought in 6187fdd during sanity checks.