[wp-trac] [WordPress Trac] #55530: In widget area <a aria-current="page" title="shows whole category description when only cat_title should be shown - which breaks the intended benefit of aria (and creates duplicate content on the category archive)"

WordPress Trac noreply at wordpress.org
Tue Apr 5 16:51:02 UTC 2022


#55530: In widget area <a aria-current="page" title="shows whole category
description when only cat_title should be shown -  which breaks the
intended benefit of aria (and creates duplicate content on the category
archive)"
-----------------------------------------+------------------------------
 Reporter:  just0nequestion              |       Owner:  (none)
     Type:  enhancement                  |      Status:  new
 Priority:  normal                       |   Milestone:  Awaiting Review
Component:  Taxonomy                     |     Version:
 Severity:  normal                       |  Resolution:
 Keywords:  needs-patch title-attribute  |     Focuses:  accessibility
-----------------------------------------+------------------------------
Changes (by sabernhardt):

 * focuses:   => accessibility
 * component:  General => Taxonomy
 * version:  5.9.2 =>
 * keywords:   => needs-patch title-attribute
 * type:  defect (bug) => enhancement


Old description:

> As aria should help people that need assistive technology, having them to
> listen to a whole heap of crumbled words that come from a html structured
> category description isn't what this was intendend for.
>

> <li class="cat-item cat-item-1 current-cat"><a aria-current="page"
> href="https://www.blog.com" title="Here comes everything from the
> category description with stipped html tags which results in a lot of
> words that don't give the user of assistive technology a benefit. It even
> disturbs him (when categories have long / formatted descriptions. The
> words here show up without formatting and created duplicate content on
> page">*</a>

New description:

 As aria should help people that need assistive technology, having them to
 listen to a whole heap of crumbled words that come from a html structured
 category description isn't what this was intendend for.


 `<li class="cat-item cat-item-1 current-cat"><a aria-current="page"
 href="https://www.blog.com" title="Here comes everything from the category
 description with stipped html tags which results in a lot of words that
 don't give the user of assistive technology a benefit. It even disturbs
 him (when categories have long / formatted descriptions. The words here
 show up without formatting and created duplicate content on page">*</a>`

--

Comment:

 Thanks for the report!

 WordPress has removed many title attributes, but the
 [https://developer.wordpress.org/reference/functions/wp_list_categories/
 wp_list_categories function] still has `use_desc_for_title` true (`1`) by
 default. I don't think this should be the expected default.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55530#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list