Administration: Fix some HTML validation errors.
Fixes some minor HTML issues in the admin and, most notably, changes the rel attribute used in the List Tables from `rel="permalink"` to `rel="bookmark"`. Props mihai2u, pento, arena, topher1kenobe, michalzuber, stubgo. Fixes #37004. Built from https://develop.svn.wordpress.org/trunk@40823 git-svn-id: http://core.svn.wordpress.org/trunk@40680 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -1288,7 +1288,7 @@ class WP_Posts_List_Table extends WP_List_Table {
|
||||
if ( $can_edit_post ) {
|
||||
$preview_link = get_preview_post_link( $post );
|
||||
$actions['view'] = sprintf(
|
||||
'<a href="%s" rel="permalink" aria-label="%s">%s</a>',
|
||||
'<a href="%s" rel="bookmark" aria-label="%s">%s</a>',
|
||||
esc_url( $preview_link ),
|
||||
/* translators: %s: post title */
|
||||
esc_attr( sprintf( __( 'Preview “%s”' ), $title ) ),
|
||||
@@ -1297,7 +1297,7 @@ class WP_Posts_List_Table extends WP_List_Table {
|
||||
}
|
||||
} elseif ( 'trash' != $post->post_status ) {
|
||||
$actions['view'] = sprintf(
|
||||
'<a href="%s" rel="permalink" aria-label="%s">%s</a>',
|
||||
'<a href="%s" rel="bookmark" aria-label="%s">%s</a>',
|
||||
get_permalink( $post->ID ),
|
||||
/* translators: %s: post title */
|
||||
esc_attr( sprintf( __( 'View “%s”' ), $title ) ),
|
||||
|
||||
Reference in New Issue
Block a user