Redirects attachment pages to the post, where they are placed, and hides backend option to link images to attachment page (if not default).
This plugin redirects attachment pages to the post, where they are placed (via 301). If there is no parent page, it redirects back to the WordPress home URL (via 302).
Further, when editing a post, the option to link images to their attachment page is hidden via CSS (except it is selected by default).
disable-attachment-pages.zip
to the /wp-content/plugins/
directory.