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.
Built from https://develop.svn.wordpress.org/trunk@35998


git-svn-id: http://core.svn.wordpress.org/trunk@35963 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrea Fercia 2015-12-17 22:53:28 +00:00
parent 333bdb535a
commit e8b900d9f5
2 changed files with 11 additions and 11 deletions

View File

@ -160,7 +160,7 @@ class WP_Links_List_Table extends WP_List_Table {
}
/**
* Handles the checkbox column ouput.
* Handles the checkbox column output.
*
* @since 4.3.0
* @access public
@ -175,7 +175,7 @@ class WP_Links_List_Table extends WP_List_Table {
}
/**
* Handles the link name column ouput.
* Handles the link name column output.
*
* @since 4.3.0
* @access public
@ -185,14 +185,14 @@ class WP_Links_List_Table extends WP_List_Table {
public function column_name( $link ) {
$edit_link = get_edit_bookmark_link( $link );
?>
<strong><a class="row-title" href="<?php echo $edit_link ?>" title="<?php
echo esc_attr( sprintf( __( 'Edit &#8220;%s&#8221;' ), $link->link_name ) );
?>"><?php echo $link->link_name ?></a></strong><br />
<strong><a class="row-title" href="<?php
echo $edit_link ?>" aria-label="<?php esc_attr_e( sprintf( __( 'Edit &#8220;%s&#8221;' ), $link->link_name ) );
?>"><?php echo $link->link_name; ?></a></strong><br />
<?php
}
/**
* Handles the link URL column ouput.
* Handles the link URL column output.
*
* @since 4.3.0
* @access public
@ -201,7 +201,7 @@ class WP_Links_List_Table extends WP_List_Table {
*/
public function column_url( $link ) {
$short_url = url_shorten( $link->link_url );
echo "<a href='$link->link_url' title='". esc_attr( sprintf( __( 'Visit %s' ), $link->link_name ) )."'>$short_url</a>";
echo "<a href='$link->link_url'>$short_url</a>";
}
/**
@ -233,7 +233,7 @@ class WP_Links_List_Table extends WP_List_Table {
}
/**
* Handles the link relation column ouput.
* Handles the link relation column output.
*
* @since 4.3.0
* @access public
@ -245,7 +245,7 @@ class WP_Links_List_Table extends WP_List_Table {
}
/**
* Handles the link visibility column ouput.
* Handles the link visibility column output.
*
* @since 4.3.0
* @access public
@ -261,7 +261,7 @@ class WP_Links_List_Table extends WP_List_Table {
}
/**
* Handles the link rating column ouput.
* Handles the link rating column output.
*
* @since 4.3.0
* @access public

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.5-alpha-35997';
$wp_version = '4.5-alpha-35998';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.