Make WordPress Core


Ignore:
Timestamp:
03/19/2022 08:30:01 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use esc_url() instead of esc_attr() for some URLs.

Follow-up to [2063], [2182], [4656], [6952], [9098], [11109], [11204], [17887], [22505],

Props kebbet.
See #54728.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-comments-list-table.php

    r52205 r52957  
    920920            <div class="author-email"><?php echo esc_attr( $comment->comment_author_email ); ?></div>
    921921            <div class="author"><?php echo esc_attr( $comment->comment_author ); ?></div>
    922             <div class="author-url"><?php echo esc_attr( $comment->comment_author_url ); ?></div>
     922            <div class="author-url"><?php echo esc_url( $comment->comment_author_url ); ?></div>
    923923            <div class="comment_status"><?php echo $comment->comment_approved; ?></div>
    924924        </div>
Note: See TracChangeset for help on using the changeset viewer.