Twenty Thirteen: Attachment URLs for unattached images cause redirect loop
|Reported by:||trepmal||Owned by:||lancewillett|
Description (last modified by lancewillett)
In Twenty Thirteen, the attachment url for an unattached image (e.g. http://local.dev/trunk/?attachment_id=5252#main) results in an infinite redirect loop.
See #23543 for original improvements.
Attachment urls for attached images (e.g. http://local.dev/trunk/sample-page/hd-traver-4/#main) are fine.
Commenting out add_filter( 'attachment_link', 'twentythirteen_attachment_link' ); in functions.php is the quick fix.