WordPress.org

Make WordPress Core

Changeset 20654


Ignore:
Timestamp:
04/30/12 21:22:58 (3 years ago)
Author:
ryan
Message:

Don't escape anchor text as an attributein wp_get_attachment_link(). Props SergeyBiryukov. fixes #19282

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post-template.php

    r20595 r20654  
    11671167 
    11681168    if ( $text ) 
    1169         $link_text = esc_attr( $text ); 
     1169        $link_text = $text; 
    11701170    elseif ( $size && 'none' != $size ) 
    11711171        $link_text = wp_get_attachment_image( $id, $size, $icon ); 
Note: See TracChangeset for help on using the changeset viewer.