WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

Text_Diff::_check() public WP 1.0

Checks a diff for validity.

This is here only for debugging purposes.

{} Это метод класса: Text_Diff{}

Хуков нет.

Возвращает

Null. Ничего.

Использование

$Text_Diff = new Text_Diff();
$Text_Diff->_check( $from_lines, $to_lines );

Код Text_Diff::_check() WP 5.5.3

<?php
function _check($from_lines, $to_lines)
{
    if (serialize($from_lines) != serialize($this->getOriginal())) {
        trigger_error("Reconstructed original doesn't match", E_USER_ERROR);
    }
    if (serialize($to_lines) != serialize($this->getFinal())) {
        trigger_error("Reconstructed final doesn't match", E_USER_ERROR);
    }

    $rev = $this->reverse();
    if (serialize($to_lines) != serialize($rev->getOriginal())) {
        trigger_error("Reversed original doesn't match", E_USER_ERROR);
    }
    if (serialize($from_lines) != serialize($rev->getFinal())) {
        trigger_error("Reversed final doesn't match", E_USER_ERROR);
    }

    $prevtype = null;
    foreach ($this->_edits as $edit) {
        if ($prevtype == get_class($edit)) {
            trigger_error("Edit sequence is non-optimal", E_USER_ERROR);
        }
        $prevtype = get_class($edit);
    }

    return true;
}