Make WordPress Core

Ticket #56147: 56147.diff

File 56147.diff, 687 bytes (added by vishitshah, 3 years ago)
  • wp-admin/user-edit.php

    diff --git a/wp-admin/user-edit.php b/wp-admin/user-edit.php
    index 49faa4e22b..27db590e5b 100644
    a b switch ( $action ) { 
    542542
    543543                                        <tr class="user-url-wrap">
    544544                                                <th><label for="url"><?php _e( 'Website' ); ?></label></th>
    545                                                 <td><input type="url" name="url" id="url" value="<?php echo esc_attr( $profile_user->user_url ); ?>" class="regular-text code" /></td>
     545                                                <td><input type="url" name="url" id="url" value="<?php echo esc_url( $profile_user->user_url ); ?>" class="regular-text code" /></td>
    546546                                        </tr>
    547547
    548548                                        <?php foreach ( wp_get_user_contact_methods( $profile_user ) as $name => $desc ) : ?>