pfefferle/wordpress-webmention

Fatal error due to broken comment query callback

janboddez opened this issue · 1 comments

There's an issue here:

$query = current( $query->query_vars['meta_query'] );

This alters completely overwrites (but only when a meta_query array is present) $query, which is passed by reference.

And leads to a fatal error later on, when this code is run:

$query->query_vars['type__not_in'] = get_webmention_comment_type_names();

Originally reported at janboddez/indieblocks#180.

Should be fixed on 5.3.1! Thanks for your fast help!