Make WordPress Core

Changeset 59388


Ignore:
Timestamp:
11/11/2024 08:41:32 PM (15 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use esc_url() for comment author URL in Edit Comment form.

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

Props hiteshhuptechweb, sabernhardt.
Fixes #62373.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-form-comment.php

    r55276 r59388  
    6969    <td class="first"><label for="newcomment_author_url"><?php _e( 'URL' ); ?></label></td>
    7070    <td>
    71         <input type="text" id="newcomment_author_url" name="newcomment_author_url" size="30" class="code" value="<?php echo esc_attr( $comment->comment_author_url ); ?>" />
     71        <input type="text" id="newcomment_author_url" name="newcomment_author_url" size="30" class="code" value="<?php echo esc_url( $comment->comment_author_url ); ?>" />
    7272    </td>
    7373</tr>
Note: See TracChangeset for help on using the changeset viewer.