WordPress at Your Fingertips
function is not described

Text_Diff::isEmpty() public WP 1.0

Checks for an empty diff.

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

No Hooks.


true|false. True if two sequences were identical.


$Text_Diff = new Text_Diff();

Code of Text_Diff::isEmpty() WP 5.8

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