Make WordPress Core

Ticket #59141: 59141.patch

File 59141.patch, 854 bytes (added by nidhidhandhukiya, 13 months ago)
  • wp-admin/revision.php

     
    104104                }
    105105
    106106                $post_edit_link = get_edit_post_link();
    107                 $post_title     = '<a href="' . $post_edit_link . '">' . _draft_or_post_title() . '</a>';
     107                $post_title     = '<a href="' . esc_url( $post_edit_link ) . '">' . _draft_or_post_title() . '</a>';
    108108                /* translators: %s: Post title. */
    109109                $h1             = sprintf( __( 'Compare Revisions of &#8220;%s&#8221;' ), $post_title );
    110                 $return_to_post = '<a href="' . $post_edit_link . '">' . __( '&larr; Go to editor' ) . '</a>';
     110                $return_to_post = '<a href="' . esc_url( $post_edit_link ) . '">' . __( '&larr; Go to editor' ) . '</a>';
    111111                // Used in the HTML title tag.
    112112                $title = __( 'Revisions' );
    113113