Text_Diff::isEmpty()publicWP 1.0

Checks for an empty diff.

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

Хуков нет.

Возвращает

true|false. True if two sequences were identical.

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

$Text_Diff = new Text_Diff();
$Text_Diff->isEmpty();

Код Text_Diff::isEmpty() WP 6.0.2

function isEmpty()
{
    foreach ($this->_edits as $edit) {
        if (!is_a($edit, 'Text_Diff_Op_copy')) {
            return false;
        }
    }
    return true;
}