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.
Return
Array. The original sequence of strings.
Usage
$Text_Diff = new Text_Diff(); $Text_Diff->getOriginal();
Code of Text_Diff::getOriginal() Text Diff::getOriginal WP 5.6
function getOriginal()
{
$lines = array();
foreach ($this->_edits as $edit) {
if ($edit->orig) {
array_splice($lines, count($lines), 0, $edit->orig);
}
}
return $lines;
}