Make WordPress Core


Ignore:
Timestamp:
09/22/2017 11:27:44 AM (6 years ago)
Author:
SergeyBiryukov
Message:

Taxonomy: Convert tag cloud in Tags meta box to a list (<ul>) for better semantics and accessibility.

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

Props audrasjb, afercia.
Fixes #40187.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/ajax-actions.php

    r41292 r41563  
    964964
    965965    // We need raw tag names here, so don't filter the output
    966     $return = wp_generate_tag_cloud( $tags, array('filter' => 0) );
     966    $return = wp_generate_tag_cloud( $tags, array( 'filter' => 0, 'format' => 'list' ) );
    967967
    968968    if ( empty($return) )
Note: See TracChangeset for help on using the changeset viewer.