WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/04/2017 11:52:03 PM (4 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/twentyseventeen/functions.php

    r41703 r41756  
    543543
    544544/**
    545  * Modify tag cloud widget arguments to display all tags in the same font size
     545 * Modifies tag cloud widget arguments to display all tags in the same font size
    546546 * and use list format for better accessibility.
    547547 *
     
    556556    $args['unit']     = 'em';
    557557    $args['format']   = 'list';
     558
    558559    return $args;
    559560}
Note: See TracChangeset for help on using the changeset viewer.