Skip to content

Commit

Permalink
Coding Standards: Use esc_url() for comment author URL in Edit Comm…
Browse files Browse the repository at this point in the history
…ent form.

Follow-up to [5543], [9436], [11104], [11204], [11739].

Props hiteshhuptechweb, sabernhardt.
Fixes #62373.

git-svn-id: https://develop.svn.wordpress.org/trunk@59388 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed Nov 11, 2024
1 parent 1d4f224 commit e647b07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wp-admin/edit-form-comment.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
<tr>
<td class="first"><label for="newcomment_author_url"><?php _e( 'URL' ); ?></label></td>
<td>
<input type="text" id="newcomment_author_url" name="newcomment_author_url" size="30" class="code" value="<?php echo esc_attr( $comment->comment_author_url ); ?>" />
<input type="text" id="newcomment_author_url" name="newcomment_author_url" size="30" class="code" value="<?php echo esc_url( $comment->comment_author_url ); ?>" />
</td>
</tr>
</tbody>
Expand Down

0 comments on commit e647b07

Please sign in to comment.