WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/04/2017 11:52:03 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Bundled Themes: Change tag cloud format to a list (<ul>) for better semantics and accessibility.

List markup allows screen reader users to know in advance how many tags are within the list.

Props xkon, davidakennedy.
Fixes #40138.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentysixteen/inc/template-tags.php

    r40908 r41756  
    102102
    103103    $tags_list = get_the_tag_list( '', _x( ', ', 'Used between list items, there is a space after the comma.', 'twentysixteen' ) );
    104     if ( $tags_list ) {
     104    if ( $tags_list && ! is_wp_error( $tags_list ) ) {
    105105        printf( '<span class="tags-links"><span class="screen-reader-text">%1$s </span>%2$s</span>',
    106106            _x( 'Tags', 'Used before tag names.', 'twentysixteen' ),
Note: See TracChangeset for help on using the changeset viewer.