• Resolved Ov3rfly

    (@ov3rfly)


    Accessibility check of profile page fails due to invalid aria attribute in profile photo html.

    <div class="um-profile-photo" data-user_id="123"  aria-invalid=&quot;false&quot; >

    Reason is in includes/core/um-actions-profile.php line 1020:

    <div class="um-profile-photo" data-user_id="<?php echo esc_attr( um_profile_id() ); ?>" <?php echo esc_html( UM()->fields()->aria_valid_attributes( UM()->fields()->is_error( 'profile_photo' ), 'profile_photo' ) ); ?>>

    Use of esc_html() for whole attribute html instead of esc_attr() only for attribute value causes this problem.

    Ultimate Member 2.8.2, WordPress 6.4.3

Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Bug, invalid aria attribute on profile page’ is closed to new replies.