Merge pull request #9293 from shivapoudel/post-states

Escape using esc_url instead of esc_attr for link
This commit is contained in:
Mike Jolley 2015-10-06 10:18:37 +01:00
commit b8e666b09c
1 changed files with 2 additions and 2 deletions

View File

@ -297,7 +297,7 @@ class WC_Admin_Post_Types {
$edit_link = get_edit_post_link( $post->ID );
$title = _draft_or_post_title();
echo '<strong><a class="row-title" href="' . esc_url( $edit_link ) .'">' . $title .'</a>';
echo '<strong><a class="row-title" href="' . esc_url( $edit_link ) . '">' . esc_html( $title ) . '</a>';
_post_states( $post );
@ -486,7 +486,7 @@ class WC_Admin_Post_Types {
$edit_link = get_edit_post_link( $post->ID );
$title = _draft_or_post_title();
echo '<strong><a href="' . esc_attr( $edit_link ) . '" class="row-title">' . esc_html( $title ). '</a>';
echo '<strong><a class="row-title" href="' . esc_url( $edit_link ) . '">' . esc_html( $title ) . '</a>';
_post_states( $post );