WordPress.org

Make WordPress Core

Ticket #33004: #33004.diff

File #33004.diff, 717 bytes (added by utkarshpatel, 6 years ago)

Patch #33004

  • wp-includes/wp-diff.php

    diff --git wp-includes/wp-diff.php wp-includes/wp-diff.php
    index 1e8fc0e..c31c2b9 100644
    class WP_Text_Diff_Renderer_Table extends Text_Diff_Renderer { 
    316316                                $r .= $this->_deleted( array($orig_line), false );
    317317                        } else { // A true changed row.
    318318                                if ( $this->_show_split_view ) {
    319                                         $r .= '<tr>' . $this->deletedLine( $orig_line ) . $this->emptyLine() . $this->addedLine( $final_line ) . "</tr>\n";
     319                                        $r .= '<tr>' . $this->deletedLine( $orig_line ) . $this->addedLine( $final_line ) . "</tr>\n";
    320320                                } else {
    321321                                        $r .= '<tr>' . $this->deletedLine( $orig_line ) . "</tr><tr>" . $this->addedLine( $final_line ) . "</tr>\n";
    322322                                }