Make WordPress Core


Ignore:
Timestamp:
01/27/2021 09:52:10 PM (4 years ago)
Author:
joedolson
Message:

Revisions: Generate correct number of columns in wp_text_diff.

The function wp_text_diff generated an invalid table structure if the $args parameter contained any values. This patch corrects the structure generated by wp_text_diff and related usages so that the column count matches the data generated. Additionally, this patch passes arguments to the Revisions screen so that the screen has column headings that reflect the content in each column. Improves the accessibility and usability of the Revisions table.

Props joedolson, mehulkaklotar, afercia, adamsilverstein, zodiac1978, jeremyfelt
Fixes #25473

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/revision.php

    r49927 r50034  
    8787        $args = array(
    8888            'show_split_view' => true,
     89            'title_left'      => __( 'Removed' ),
     90            'title_right'     => __( 'Added' ),
    8991        );
    9092
Note: See TracChangeset for help on using the changeset viewer.