Make WordPress Core


Ignore:
Timestamp:
04/20/2015 07:41:34 AM (11 years ago)
Author:
pento
Message:

Ensure post titles are correctly escaped on the Dashboard. Merge of [32175] to the 4.1 branch.

Props helen, ocean90, dd32, pento.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/4.1/src/wp-admin/includes/class-wp-comments-list-table.php

    r29872 r32176  
    555555                if ( current_user_can( 'edit_post', $post->ID ) ) {
    556556                        $post_link = "<a href='" . get_edit_post_link( $post->ID ) . "'>";
    557                         $post_link .= get_the_title( $post->ID ) . '</a>';
     557                        $post_link .= esc_html( get_the_title( $post->ID ) ) . '</a>';
    558558                } else {
    559                         $post_link = get_the_title( $post->ID );
     559                        $post_link = esc_html( get_the_title( $post->ID ) );
    560560                }
    561561
Note: See TracChangeset for help on using the changeset viewer.