WordPress.org

Make WordPress Core

Ticket #26160: 26160.patch

File 26160.patch, 1.2 KB (added by joedolson, 6 years ago)

Use fieldset/legend.

  • wp-admin/includes/meta-boxes.php

     
    368368                        $post_formats[0][] = $post_format;
    369369        ?>
    370370        <div id="post-formats-select">
     371        <fieldset>
     372                <legend class="screen-reader-text"><?php _e( 'Post Formats' ); ?></legend>
    371373                <input type="radio" name="post_format" class="post-format" id="post-format-0" value="0" <?php checked( $post_format, '0' ); ?> /> <label for="post-format-0" class="post-format-icon post-format-standard"><?php echo get_post_format_string( 'standard' ); ?></label>
    372374                <?php foreach ( $post_formats[0] as $format ) : ?>
    373375                <br /><input type="radio" name="post_format" class="post-format" id="post-format-<?php echo esc_attr( $format ); ?>" value="<?php echo esc_attr( $format ); ?>" <?php checked( $post_format, $format ); ?> /> <label for="post-format-<?php echo esc_attr( $format ); ?>" class="post-format-icon post-format-<?php echo esc_attr( $format ); ?>"><?php echo esc_html( get_post_format_string( $format ) ); ?></label>
    374376                <?php endforeach; ?><br />
     377        </fieldset>
    375378        </div>
    376379        <?php endif; endif;
    377380}