Make WordPress Core

Ticket #8010: escape-edit-post-translation.diff

File escape-edit-post-translation.diff, 576 bytes (added by nbachiyski, 18 years ago)
  • wp-includes/link-template.php

     
    722722                        return;
    723723        }
    724724
    725         $link = '<a href="' . get_edit_post_link( $post->ID ) . '" title="' . __( 'Edit post' ) . '">' . $link . '</a>';
     725        $link = '<a href="' . get_edit_post_link( $post->ID ) . '" title="' . attribute_escape( __( 'Edit post' ) ) . '">' . $link . '</a>';
    726726        echo $before . apply_filters( 'edit_post_link', $link, $post->ID ) . $after;
    727727}
    728728