Make WordPress Core


Ignore:
Timestamp:
10/03/2017 03:43:22 PM (8 years ago)
Author:
afercia
Message:

Customize: Fix invalid HTML and aria-describedby values.

  • fixes invalid HTML and duplicate IDs
  • as per the Accessibility coding standards, all new code must use explicitly associated form labels
  • properly escapes a few HTML attributes

Props celloexpressions, afercia.
Fixes #42054.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/customize/class-wp-customize-themes-panel.php

    r41667 r41709  
    4747
    4848                <?php if ( current_user_can( 'switch_themes' ) ) : ?>
    49                     <button type="button" class="button change-theme" aria-label="<?php _e( 'Change theme' ); ?>"><?php _ex( 'Change', 'theme' ); ?></button>
     49                    <button type="button" class="button change-theme" aria-label="<?php esc_attr_e( 'Change theme' ); ?>"><?php _ex( 'Change', 'theme' ); ?></button>
    5050                <?php endif; ?>
    5151            </h3>
     
    9191        </li>
    9292        <li class="customize-themes-full-container-container">
    93             <ul class="customize-themes-full-container">
    94                 <li class="customize-themes-notifications"></li>
    95             </ul>
     93            <div class="customize-themes-full-container">
     94                <div class="customize-themes-notifications"></div>
     95            </div>
    9696        </li>
    9797        <?php
Note: See TracChangeset for help on using the changeset viewer.