Make WordPress Core

Ticket #59141: 59141.2.diff

File 59141.2.diff, 811 bytes (added by viralsampat, 13 months ago)

I have checked above mentioned issue and I have added my updated patch.

  • src/wp-admin/revision.php

    diff --git src/wp-admin/revision.php src/wp-admin/revision.php
    index 458a749262..e6561815c4 100644
    if ( ! empty( $post->post_type ) && 'post' !== $post->post_type ) { 
    131131} else {
    132132        $parent_file = 'edit.php';
    133133}
    134 $submenu_file = $parent_file;
    135134
    136135wp_enqueue_script( 'revisions' );
    137136wp_localize_script( 'revisions', '_wpRevisionsSettings', wp_prepare_revisions_for_js( $post, $revision_id, $from ) );
    require_once ABSPATH . 'wp-admin/admin-header.php'; 
    164163?>
    165164
    166165<div class="wrap">
    167         <h1 class="long-header"><?php echo $h1; ?></h1>
    168         <?php echo $return_to_post; ?>
     166        <h1 class="long-header"><?php echo esc_html( $h1 ); ?></h1>
     167        <?php echo esc_html( $return_to_post ); ?>
    169168</div>
    170169<?php
    171170wp_print_revision_templates();