Restores featured_media and attachments checks

Restores attachments check in test suite.

Closes #2712
Closes #2538

Resub of #2796 for release 4.7

cc @sendhil