WordPress at Your Fingertips
function is not described

Text_Diff::getOriginal() public WP 1.0

Gets the original set of lines.

This reconstructs the $from_lines parameter passed to the constructor.

{} It's a method of the class: Text_Diff{}

No Hooks.


Array. The original sequence of strings.


$Text_Diff = new Text_Diff();

Code of Text_Diff::getOriginal() WP 5.8.3

function getOriginal()
    $lines = array();
    foreach ($this->_edits as $edit) {
        if ($edit->orig) {
            array_splice($lines, count($lines), 0, $edit->orig);
    return $lines;