Revisions UI: Fix table colgroup (Say what?) for post titles when they haven't been changed. see #24425.
git-svn-id: https://develop.svn.wordpress.org/trunk@24529 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
1819e0f2c2
commit
b7591bb34e
@ -38,7 +38,7 @@ function wp_get_revision_ui_diff( $post, $compare_from, $compare_to ) {
|
||||
if ( ! $diff && 'post_title' === $field ) {
|
||||
// It's a better user experience to still show the Title, even if it didn't change.
|
||||
// No, you didn't see this.
|
||||
$diff = "<table class='diff'><col class='ltype' /><col class='content' /><col class='ltype' /><col class='content' /><tbody><tr>";
|
||||
$diff = '<table class="diff"><colgroup><col class="content diffsplit left"><col class="content diffsplit middle"><col class="content diffsplit right"></colgroup><tbody><tr>';
|
||||
$diff .= '<td>' . esc_html( $compare_from->post_title ) . '</td><td></td><td>' . esc_html( $compare_to->post_title ) . '</td>';
|
||||
$diff .= '</tr></tbody>';
|
||||
$diff .= '</table>';
|
||||
@ -97,4 +97,4 @@ function wp_prepare_revisions_for_js( $post, $selected_revision_id ) {
|
||||
'revisionData' => array_values( $revisions ),
|
||||
'selectedRevision' => $selected_revision_id,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user