WordPress.org

Make WordPress Core

Ticket #19282: 19282.diff

File 19282.diff, 473 bytes (added by griffinjt, 3 years ago)
  • wp-includes/post-template.php

     
    11661166        $post_title = esc_attr( $_post->post_title ); 
    11671167 
    11681168        if ( $text ) 
    1169                 $link_text = esc_attr( $text ); 
     1169                $link_text = wp_kses_post( $text ); 
    11701170        elseif ( $size && 'none' != $size ) 
    11711171                $link_text = wp_get_attachment_image( $id, $size, $icon ); 
    11721172        else