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

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

Built from https://develop.svn.wordpress.org/trunk@55751


git-svn-id: http://core.svn.wordpress.org/trunk@55263 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
audrasjb 2023-05-11 15:05:22 +00:00
parent ad55717715
commit 0fd73d7a72
2 changed files with 2 additions and 2 deletions

View File

@ -121,7 +121,7 @@ wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false );
<div id="addressdiv" class="postbox">
<h2 class="postbox-header"><label for="link_url"><?php _e( 'Web Address' ); ?></label></h2>
<div class="inside">
<input type="text" name="link_url" size="30" maxlength="255" class="code" value="<?php echo esc_attr( $link->link_url ); ?>" id="link_url" />
<input type="text" name="link_url" size="30" maxlength="255" class="code" value="<?php echo esc_url( $link->link_url ); ?>" id="link_url" />
<p><?php _e( 'Example: <code>https://wordpress.org/</code> &#8212; do not forget the <code>https://</code>' ); ?></p>
</div>
</div>

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.3-alpha-55750';
$wp_version = '6.3-alpha-55751';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.