mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Coding Standards: Use esc_url() to escape link URL value in wp-admin/edit-link-form.php.
Props dilipbheda, mukesh27. Fixes #58282. See #57839. git-svn-id: https://develop.svn.wordpress.org/trunk@55751 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
de4bdd2850
commit
d913a47f4e
@ -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> — do not forget the <code>https://</code>' ); ?></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user