[wp-trac] [WordPress Trac] #47670: RSS widget creates an accessibility problem when used more than once
WordPress Trac
noreply at wordpress.org
Wed Sep 4 10:25:35 UTC 2019
#47670: RSS widget creates an accessibility problem when used more than once
---------------------------------------+----------------------------
Reporter: tpaw | Owner: audrasjb
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: 5.3
Component: Widgets | Version:
Severity: normal | Resolution:
Keywords: has-patch has-screenshots | Focuses: accessibility
---------------------------------------+----------------------------
Comment (by mukesh27):
@audrasjb Is it possible to remove {{{ rsswidget }}} class from the text
as same class used in parent link?
{{{
$title = '<a class="rsswidget" href="' . esc_url( $url ) . '"><img class
="rss-widget-icon" style="border:0" width="14" height="14" src="' .
esc_url( $icon ) . '" alt="" /> <span class="rsswidget rsswidget-text">' .
esc_html( $title ) . '</span></a>';
}}}
Replace to
{{{
$title = '<a class="rsswidget" href="' . esc_url( $url ) . '"><img class
="rss-widget-icon" style="border:0" width="14" height="14" src="' .
esc_url( $icon ) . '" alt="" /> <span class="rsswidget-text">' . esc_html(
$title ) . '</span></a>';
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47670#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list