WordPress.org

Make WordPress Core

Changeset 45728


Ignore:
Timestamp:
08/03/2019 01:27:43 PM (7 weeks ago)
Author:
afercia
Message:

Accessibility: Remove title attributes from the Meta widget.

  • removes the Powered by WordPress, state-of-the-art semantic personal publishing platform. title attribute
  • removes the title attribute from the abbreviations: contrary to a common belief, title attributes on abbreviations are only available to a minority of users, see https://developer.paciellogroup.com/blog/2019/03/short-note-the-abbreviation-appreciation-society/
  • changes the term RSS to feed, as RSS is a technical term not all users are supposed to be familiar with
  • improves the widget_meta_poweredby filter documentation

Props nishitlangaliya, chetan200891, audrasjb.
See #46980, #24766.
Fixes #46978.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/widgets/class-wp-widget-meta.php

    r45436 r45728  
    5757            <?php wp_register(); ?>
    5858            <li><?php wp_loginout(); ?></li>
    59             <li><a href="<?php echo esc_url( get_bloginfo( 'rss2_url' ) ); ?>"><?php _e( 'Entries <abbr title="Really Simple Syndication">RSS</abbr>' ); ?></a></li>
    60             <li><a href="<?php echo esc_url( get_bloginfo( 'comments_rss2_url' ) ); ?>"><?php _e( 'Comments <abbr title="Really Simple Syndication">RSS</abbr>' ); ?></a></li>
     59            <li><a href="<?php echo esc_url( get_bloginfo( 'rss2_url' ) ); ?>"><?php _e( 'Entries feed' ); ?></a></li>
     60            <li><a href="<?php echo esc_url( get_bloginfo( 'comments_rss2_url' ) ); ?>"><?php _e( 'Comments feed' ); ?></a></li>
    6161            <?php
    6262            /**
    63              * Filters the "Powered by WordPress" text in the Meta widget.
     63             * Filters the "WordPress.org" list item HTML in the Meta widget.
    6464             *
    6565             * @since 3.6.0
    6666             * @since 4.9.0 Added the `$instance` parameter.
    6767             *
    68              * @param string $title_text Default title text for the WordPress.org link.
    69              * @param array  $instance   Array of settings for the current widget.
     68             * @param string $html     Default HTML for the WordPress.org list item.
     69             * @param array  $instance Array of settings for the current widget.
    7070             */
    7171            echo apply_filters(
    7272                'widget_meta_poweredby',
    7373                sprintf(
    74                     '<li><a href="%s" title="%s">%s</a></li>',
     74                    '<li><a href="%1$s">%2$s</a></li>',
    7575                    esc_url( __( 'https://wordpress.org/' ) ),
    76                     esc_attr__( 'Powered by WordPress, state-of-the-art semantic personal publishing platform.' ),
    7776                    __( 'WordPress.org' )
    7877                ),
Note: See TracChangeset for help on using the changeset viewer.