• There’s an issue in your plugin where you’re adding a filter for has_post_thumbnail (function filter_has_post_thumbnail() ), you’re checking the global post ID and ignoring the passed through variable.

    So where I’m doing has_post_thumbnail($post_id) (not in the loop) your filter is instead forcing it to check against the global $post->ID instead, please fix this and test your code more thoroughly in future when adding filters to commonly used functions like this.

  • You must be logged in to reply to this topic.