Make WordPress Core


Ignore:
Timestamp:
05/23/2017 05:57:42 PM (8 years ago)
Author:
afercia
Message:

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.

File:
1 edited

Legend:

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

    r40361 r40823  
    12891289                    $preview_link = get_preview_post_link( $post );
    12901290                    $actions['view'] = sprintf(
    1291                         '<a href="%s" rel="permalink" aria-label="%s">%s</a>',
     1291                        '<a href="%s" rel="bookmark" aria-label="%s">%s</a>',
    12921292                        esc_url( $preview_link ),
    12931293                        /* translators: %s: post title */
     
    12981298            } elseif ( 'trash' != $post->post_status ) {
    12991299                $actions['view'] = sprintf(
    1300                     '<a href="%s" rel="permalink" aria-label="%s">%s</a>',
     1300                    '<a href="%s" rel="bookmark" aria-label="%s">%s</a>',
    13011301                    get_permalink( $post->ID ),
    13021302                    /* translators: %s: post title */
Note: See TracChangeset for help on using the changeset viewer.