Make WordPress Core

Ticket #43723: 43723.3.diff

File 43723.3.diff, 1.0 KB (added by donmhico, 5 years ago)

Refreshed the patch.

  • src/wp-admin/user-edit.php

    diff --git src/wp-admin/user-edit.php src/wp-admin/user-edit.php
    index d1fa16a095..76d9d27a42 100644
    endif; //!IS_PROFILE_PAGE 
    526526                <?php
    527527                foreach ( wp_get_user_contact_methods( $profileuser ) as $name => $desc ) {
    528528                        ?>
    529         <tr class="user-<?php echo $name; ?>-wrap">
    530 <th><label for="<?php echo $name; ?>">
     529        <tr class="user-<?php echo sanitize_html_class( $name ); ?>-wrap">
     530<th><label for="<?php echo esc_attr( $name ); ?>">
    531531                        <?php
    532532                        /**
    533533                         * Filters a user contactmethod label.
    endif; //!IS_PROFILE_PAGE 
    542542                        echo apply_filters( "user_{$name}_label", $desc );
    543543                        ?>
    544544        </label></th>
    545         <td><input type="text" name="<?php echo $name; ?>" id="<?php echo $name; ?>" value="<?php echo esc_attr( $profileuser->$name ); ?>" class="regular-text" /></td>
     545        <td><input type="text" name="<?php echo esc_attr( $name ); ?>" id="<?php echo esc_attr( $name ); ?>" value="<?php echo esc_attr( $profileuser->$name ); ?>" class="regular-text" /></td>
    546546        </tr>
    547547                        <?php
    548548                }