diff --git a/wp-admin/includes/revision.php b/wp-admin/includes/revision.php index 6b05442370..f431493fc1 100644 --- a/wp-admin/includes/revision.php +++ b/wp-admin/includes/revision.php @@ -111,8 +111,20 @@ function wp_get_revision_ui_diff( $post, $compare_from, $compare_to ) { // It's a better user experience to still show the Title, even if it didn't change. // No, you didn't see this. $diff = ''; - $diff .= ''; - $diff .= ''; + + // In split screen mode, show the title before/after side by side. + if ( true === $args['show_split_view'] ) { + $diff .= ''; + } else { + $diff .= ''; + + // In single column mode, only show the title once if unchanged. + if ( $compare_from->post_title !== $compare_to->post_title ) { + $diff .= ''; + } + } + + $diff .= ''; $diff .= '
' . esc_html( $compare_from->post_title ) . '' . esc_html( $compare_to->post_title ) . '
' . esc_html( $compare_from->post_title ) . '' . esc_html( $compare_to->post_title ) . '' . esc_html( $compare_from->post_title ) . '
' . esc_html( $compare_to->post_title ) . '
'; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 85a48efe14..f57456c7f1 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '5.0-alpha-42965'; +$wp_version = '5.0-alpha-42966'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.