PHP 7.2 compatibility
Polylang Pro compatibility & syntax error fix
Plugin is now compatible with Polylang Pro content duplication (if you have that enabled, this plugin won't do anything). If you are using the Pro version, you don't really need this plugin.
Props @k1sul1 found a rare syntax error when post is a parent of attachments that are not inside content or in featured image. This is now fixed.