Make WordPress Core

Changeset 55751


Ignore:
Timestamp:
05/11/2023 03:03:59 PM (13 months ago)
Author:
audrasjb
Message:

Coding Standards: Use esc_url() to escape link URL value in wp-admin/edit-link-form.php.

Props dilipbheda, mukesh27.
Fixes #58282.
See #57839.

File:
1 edited

Legend:

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

    r55412 r55751  
    122122<h2 class="postbox-header"><label for="link_url"><?php _e( 'Web Address' ); ?></label></h2>
    123123<div class="inside">
    124     <input type="text" name="link_url" size="30" maxlength="255" class="code" value="<?php echo esc_attr( $link->link_url ); ?>" id="link_url" />
     124    <input type="text" name="link_url" size="30" maxlength="255" class="code" value="<?php echo esc_url( $link->link_url ); ?>" id="link_url" />
    125125    <p><?php _e( 'Example: <code>https://wordpress.org/</code> &#8212; do not forget the <code>https://</code>' ); ?></p>
    126126</div>
Note: See TracChangeset for help on using the changeset viewer.