Make WordPress Core

Changeset 35998


Ignore:
Timestamp:
12/17/2015 10:52:27 PM (9 years ago)
Author:
afercia
Message:

Accessibility: Remove title attributes from the Link Manager screen.

Title attributes are now replaced with aria-label where appropriate.
Also fixes some typos in the DocBlocks.

Fixes #35135.

File:
1 edited

Legend:

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

    r35241 r35998  
    161161
    162162    /**
    163      * Handles the checkbox column ouput.
     163     * Handles the checkbox column output.
    164164     *
    165165     * @since 4.3.0
     
    176176
    177177    /**
    178      * Handles the link name column ouput.
     178     * Handles the link name column output.
    179179     *
    180180     * @since 4.3.0
     
    186186        $edit_link = get_edit_bookmark_link( $link );
    187187        ?>
    188         <strong><a class="row-title" href="<?php echo $edit_link ?>" title="<?php
    189             echo esc_attr( sprintf( __( 'Edit &#8220;%s&#8221;' ), $link->link_name ) );
    190         ?>"><?php echo $link->link_name ?></a></strong><br />
     188        <strong><a class="row-title" href="<?php
     189            echo $edit_link ?>" aria-label="<?php esc_attr_e( sprintf( __( 'Edit &#8220;%s&#8221;' ), $link->link_name ) );
     190        ?>"><?php echo $link->link_name; ?></a></strong><br />
    191191        <?php
    192192    }
    193193
    194194    /**
    195      * Handles the link URL column ouput.
     195     * Handles the link URL column output.
    196196     *
    197197     * @since 4.3.0
     
    202202    public function column_url( $link ) {
    203203        $short_url = url_shorten( $link->link_url );
    204         echo "<a href='$link->link_url' title='". esc_attr( sprintf( __( 'Visit %s' ), $link->link_name ) )."'>$short_url</a>";
     204        echo "<a href='$link->link_url'>$short_url</a>";
    205205    }
    206206
     
    234234
    235235    /**
    236      * Handles the link relation column ouput.
     236     * Handles the link relation column output.
    237237     *
    238238     * @since 4.3.0
     
    246246
    247247    /**
    248      * Handles the link visibility column ouput.
     248     * Handles the link visibility column output.
    249249     *
    250250     * @since 4.3.0
     
    262262
    263263    /**
    264      * Handles the link rating column ouput.
     264     * Handles the link rating column output.
    265265     *
    266266     * @since 4.3.0
Note: See TracChangeset for help on using the changeset viewer.