Escape class attribute in edit_post_link() after [34098].

Props Offereins.
See #30563.

git-svn-id: https://develop.svn.wordpress.org/trunk@34117 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2015-09-14 13:00:31 +00:00
parent 08098026ce
commit 13382740b9

View File

@ -1226,7 +1226,7 @@ function edit_post_link( $text = null, $before = '', $after = '', $id = 0, $clas
$text = __( 'Edit This' );
}
$link = '<a class="' . $class . '" href="' . $url . '">' . $text . '</a>';
$link = '<a class="' . esc_attr( $class ) . '" href="' . $url . '">' . $text . '</a>';
/**
* Filter the post edit link anchor tag.