[wp-trac] [WordPress Trac] #23719: Twenty Thirteen: Attachment URLs for unattached images cause redirect loop

WordPress Trac noreply at wordpress.org
Tue Mar 12 17:21:20 UTC 2013


#23719: Twenty Thirteen: Attachment URLs for unattached images cause redirect loop
-----------------------------+--------------------
 Reporter:  trepmal          |       Owner:
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  3.6
Component:  Bundled Theme    |     Version:  trunk
 Severity:  major            |  Resolution:
 Keywords:  has-patch close  |
-----------------------------+--------------------
Description changed by lancewillett:

Old description:

> 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.
>
> 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.

New description:

 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.

--

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23719#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list