Escape using esc_url instead of esc_attr for link

This commit is contained in:
Shiva Poudel 2015-10-06 10:40:11 +05:45
parent f2b3364fc9
commit f6f7646cb6
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 );