Make WordPress Core

Changeset 34452


Ignore:
Timestamp:
09/23/2015 04:25:18 AM (9 years ago)
Author:
wonderboymusic
Message:

Links: the esc_html() additions in [34444] aren't very nice to screen reader <span>s. Revert those specific calls.

See #14900.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/link-template.php

    r34445 r34452  
    683683    }
    684684
    685     $link = '<a href="' . esc_url( $url ) . '">' . esc_html( $link_text ) . '</a>';
     685    $link = '<a href="' . esc_url( $url ) . '">' . $link_text . '</a>';
    686686    /**
    687687     * Filter the post comment feed link anchor tag.
     
    12931293    }
    12941294
    1295     $link = '<a class="' . esc_attr( $class ) . '" href="' . esc_url( $url ) . '">' . esc_html( $text ) . '</a>';
     1295    $link = '<a class="' . esc_attr( $class ) . '" href="' . esc_url( $url ) . '">' . $text . '</a>';
    12961296
    12971297    /**
     
    13951395    }
    13961396
    1397     $link = '<a class="comment-edit-link" href="' . esc_url( get_edit_comment_link( $comment ) ) . '">' . esc_html( $text ) . '</a>';
     1397    $link = '<a class="comment-edit-link" href="' . esc_url( get_edit_comment_link( $comment ) ) . '">' . $text . '</a>';
    13981398
    13991399    /**
     
    14551455        $link = __('Edit This');
    14561456
    1457     $link = '<a href="' . esc_url( get_edit_bookmark_link( $bookmark ) ) . '">' . esc_html( $link ) . '</a>';
     1457    $link = '<a href="' . esc_url( get_edit_bookmark_link( $bookmark ) ) . '">' . $link . '</a>';
    14581458
    14591459    /**
Note: See TracChangeset for help on using the changeset viewer.