WordPress.org

Make WordPress Core

Changeset 29424


Ignore:
Timestamp:
08/07/2014 02:55:18 AM (4 years ago)
Author:
wonderboymusic
Message:

After [29201], use aria-label instead of aria-labelledby in WP_Plugin_Install_List_Table::display_rows().

Props nvwd, DrewAPicture.
Fixes #28853.

File:
1 edited

Legend:

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

    r29359 r29424  
    376376                    case 'install':
    377377                        if ( $status['url'] ) {
    378                             $action_links[] = '<a class="install-now button" href="' . $status['url'] . '" aria-labelledby="' . $plugin['slug'] . '">' . __( 'Install Now' ) . '</a>';
     378                            /* translators: 1: Plugin name and version. */
     379                            $action_links[] = '<a class="install-now button" href="' . $status['url'] . '" aria-label="' . esc_attr( sprintf( __( 'Install %s now' ), $name ) ) . '">' . __( 'Install Now' ) . '</a>';
    379380                        }
    380381
     
    382383                    case 'update_available':
    383384                        if ( $status['url'] ) {
    384                             $action_links[] = '<a class="button" href="' . $status['url'] . '" aria-labelledby="' . $plugin['slug'] . '">' . __( 'Update Now' ) . '</a>';
     385                            /* translators: 1: Plugin name and version */
     386                            $action_links[] = '<a class="button" href="' . $status['url'] . '" aria-label="' . esc_attr( sprintf( __( 'Update %s now' ), $name ) ) . '">' . __( 'Update Now' ) . '</a>';
    385387                        }
    386388
     
    396398                                '&amp;TB_iframe=true&amp;width=600&amp;height=550' );
    397399
    398             $action_links[] = '<a href="' . esc_url( $details_link ) . '" class="thickbox" aria-labelledby="' . $plugin['slug'] . '" data-title="' . esc_attr( $name ) . '">' . __( 'More Details' ) . '</a>';
     400            /* translators: 1: Plugin name and version. */
     401            $action_links[] = '<a href="' . esc_url( $details_link ) . '" class="thickbox" aria-label="' . esc_attr( sprintf( __( 'More information about %s' ), $name ) ) . '" data-title="' . esc_attr( $name ) . '">' . __( 'More Details' ) . '</a>';
    399402
    400403
Note: See TracChangeset for help on using the changeset viewer.