Make WordPress Core

Changeset 32725


Ignore:
Timestamp:
06/11/2015 09:27:13 AM (9 years ago)
Author:
obenland
Message:

Improve non-visual feedback for list table items without terms.

Props karpstrucking, afercia.
Fixes #32150.

Location:
trunk/src/wp-admin/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-media-list-table.php

    r32724 r32725  
    497497                        echo join( __( ', ' ), $out );
    498498                    } else {
    499                         echo '—';
     499                        echo '<span aria-hidden="true">&#8212;</span><span class="screen-reader-text">' . get_taxonomy( $taxonomy )->labels->not_found . '</span>';
    500500                    }
    501501
  • trunk/src/wp-admin/includes/class-wp-posts-list-table.php

    r32724 r32725  
    908908                            echo join( __( ', ' ), $out );
    909909                        } else {
    910                             echo '&#8212;';
     910                            echo '<span aria-hidden="true">&#8212;</span><span class="screen-reader-text">' . $taxonomy_object->labels->not_found . '</span>';
    911911                        }
    912912                        break;
Note: See TracChangeset for help on using the changeset viewer.